Open XiaofanLinUS opened 7 years ago
Hi!
What OS and distribution are you using? I'm only asking because win+d
suggests you're using windows?
Does win+d
minimize all windows and show the desktop?
With a little bit more information I can look into it for you :)
Thanks!
Oh, sorry, I forgot to tell you. I am using Ubuntu 16.04 LTS.
Hi again,
It looks like it might be possible :D I think we might be able to do something along the lines of (untested)
win.on('close', (event) => {
event.preventDefault();
})
Reference https://electron.atom.io/docs/all/#event-close
PR's welcome, I'll try and see if I can try this out in the coming days
Hi,
Not sure if its exactly what you want, but try adding type: 'desktop'
to the window options in main.js
:
https://github.com/joereynolds/fanbox/blob/de9985113c0af6e4330a4ffa981097f2276393be/app/main.js#L23-L31
On linux and macOS, that should render directly to the root window (resulting in conky-like behaviour).
I tested this on my system (Ubuntu 16.04.3 LTS) and it works like a charm.
Hi, I like this program more than conky for its simplicity to implement custom theme with css and html. I have been used fanbox for a while. I can't help wondering if fanbox can be set to stick with the desktop background like conky so that whenever I win+d, I can still see the dashboard. I don't know much about electron. Hope that you can give me the answer. Than you!