datcord icon indicating copy to clipboard operation
datcord copied to clipboard

Feature request: Minimise to tray

Open Chirunos opened this issue 1 year ago • 15 comments

Chirunos avatar May 09 '23 14:05 Chirunos

this would be a great feature. a really important one i would say

andersrh avatar Jan 07 '24 08:01 andersrh

I totally agree about this being a needed feature, as having Datcord open all of the time to receive notifications isn't ideal. However, I am not really sure about how I would even go about doing this as it would probably require extensive modifications to Firefox's source code. Perhaps I could have it so that Datcord launches in headless mode when you close the window and re-opens normal mode when you open it again. Firefox also has these background tasks which might be another way of doing this.

gamingdoom avatar Jan 08 '24 20:01 gamingdoom

Just wanted to add bump support to this request

gregzme17 avatar Jan 15 '24 21:01 gregzme17

I have a prototype of this working currently. I have a cpp program to toggle between headless and non headless mode so that when you close datcord, headless mode launches and when you launch datcord again, it reopens in a window. Notifications also work in this mode. This solution isnt really ideal because of the memory usage, as it is kind of the same as having datcord open all the time.

gamingdoom avatar Jan 18 '24 05:01 gamingdoom

well i think it's better than nothing. I have lots of RAM so my PC can handle it, but for people with low RAM, it might be an issue.

andersrh avatar Jan 22 '24 13:01 andersrh

Datcord now runs in the background in 0.5.0 which means that you receive notifications in the background. However there are still some things I would like to improve. First of all, I use the method described earlier which means that it uses extra ram. Secondly, the implementation can be a little jank and lead to datcord not launching the first time if it exited improperly. Third, clicking on notifications currently does nothing so I would like to fix that. Finally, the app doesn't actually minimize to tray so I feel like I should have that happen in the next iteration.

gamingdoom avatar Jan 23 '24 00:01 gamingdoom

Datcord now runs in the background in 0.5.0 which means that you receive notifications in the background. However there are still some things I would like to improve. First of all, I use the method described earlier which means that it uses extra ram. Secondly, the implementation can be a little jank and lead to datcord not launching the first time if it exited improperly. Third, clicking on notifications currently does nothing so I would like to fix that. Finally, the app doesn't actually minimize to tray so I feel like I should have that happen in the next iteration.

amazing. thanks for the great work!

andersrh avatar Jan 23 '24 14:01 andersrh

Datcord now runs in the background in 0.5.0 which means that you receive notifications in the background. However there are still some things I would like to improve. First of all, I use the method described earlier which means that it uses extra ram. Secondly, the implementation can be a little jank and lead to datcord not launching the first time if it exited improperly. Third, clicking on notifications currently does nothing so I would like to fix that. Finally, the app doesn't actually minimize to tray so I feel like I should have that happen in the next iteration.

Great work! I love any implementation of software that is libre and I'll take any chance to stick it to Google and their browser monopoly. Unfortunately, even though this does seem to run in the background, I have no way to call the app again after closing it, without a tray icon. When I open it from my system's app menu, it just says that it's already running and errors out. So I can never close it, which isn't ideal.

soulstenance avatar Feb 12 '24 05:02 soulstenance

I have implemented tray support. I just need to make the detection for if you launch it again to re-open the window a little better and I need to make notifications clickable and this will be done.

gamingdoom avatar Feb 14 '24 06:02 gamingdoom

also waiting for that feature, great work btw

poltpolt avatar Feb 23 '24 21:02 poltpolt

I'm no longer using dis(service)cord, but I guess I'm leaving this open because other people want it.

Chirunos avatar May 09 '24 06:05 Chirunos

The improvements are now available in 0.5.2.

gamingdoom avatar Jun 13 '24 05:06 gamingdoom

Awesome. Looks like the Flatpak is yet to be updated but I guess that might be out of your hands?

Ambient-Impact avatar Jun 21 '24 02:06 Ambient-Impact

Yep, still working on updating flatpak.

gamingdoom avatar Jun 23 '24 08:06 gamingdoom

No worries. Thanks!

Ambient-Impact avatar Jun 24 '24 02:06 Ambient-Impact