Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Minimise to tray #46

Open
Chirunos opened this issue May 9, 2023 · 15 comments
Open

Feature request: Minimise to tray #46

Chirunos opened this issue May 9, 2023 · 15 comments
Labels
enhancement New feature or request

Comments

@Chirunos
Copy link

Chirunos commented May 9, 2023

No description provided.

@gamingdoom gamingdoom added the enhancement New feature or request label Aug 19, 2023
@andersrh
Copy link

andersrh commented Jan 7, 2024

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

@gamingdoom
Copy link
Owner

gamingdoom commented Jan 8, 2024

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.

@gregzme17
Copy link

Just wanted to add bump support to this request

@gamingdoom
Copy link
Owner

gamingdoom commented Jan 18, 2024

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.

@andersrh
Copy link

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.

@gamingdoom
Copy link
Owner

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.

@andersrh
Copy link

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!

@soulstenance
Copy link

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.

@gamingdoom gamingdoom moved this to Backlog in Neutron Progress Feb 14, 2024
@gamingdoom gamingdoom moved this to Backlog in Datcord Progress Feb 14, 2024
@gamingdoom gamingdoom moved this from Backlog to In progress in Datcord Progress Feb 14, 2024
@gamingdoom
Copy link
Owner

gamingdoom commented Feb 14, 2024

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.

@poltpolt
Copy link

also waiting for that feature, great work btw

@Chirunos
Copy link
Author

Chirunos commented May 9, 2024

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

@gamingdoom
Copy link
Owner

The improvements are now available in 0.5.2.

@Ambient-Impact
Copy link

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

@gamingdoom
Copy link
Owner

Yep, still working on updating flatpak.

@Ambient-Impact
Copy link

No worries. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

No branches or pull requests

7 participants