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

GUI doesn't launch using desktop file #2

Open
ashucg opened this issue Dec 13, 2021 · 5 comments
Open

GUI doesn't launch using desktop file #2

ashucg opened this issue Dec 13, 2021 · 5 comments

Comments

@ashucg
Copy link

ashucg commented Dec 13, 2021

As mentioned in the title, GUI does not launch when you use the .desktop file (menu entry), flatpak run org.gnome.Hamster works fine.

@rabin-io
Copy link
Collaborator

rabin-io commented Jan 1, 2023

@ashucg can you please try the fix mention above, and comment the DBusActivatable=true line in the file

/var/lib/flatpak/exports/share/applications/org.gnome.Hamster.desktop

@ashucg
Copy link
Author

ashucg commented Jan 3, 2023

@rabin-io yes, I can confirm that commenting out the DBusActivatable=true line fixes the issue.

@rabin-io
Copy link
Collaborator

rabin-io commented Jan 3, 2023

I will need some time to investigate this, as D-Bus activation should be supported on flatpak as well

@bbhtt
Copy link
Contributor

bbhtt commented Jun 11, 2023

I think this is because the desktop file in the flatpak is called org.gnome.Hamster and not org.gnome.Hamster.GUI and upstream uses the latter as the id.

Can you rename it to that and see if it works?

ON GNOME:

cp {/var/lib/, ~/.local/share/}flatpak/exports/share/applications/org.gnome.Hamster.desktop ~/.local/share/applications

mv ~/.local/share/applications/org.gnome.Hamster.desktop ~/.local/share/applications/org.gnome.Hamster.GUI.desktop

Now log out and log back in and try to launch it. Seems to work here.

If this is the case, I think the solution is to remove that part from the upstream desktop file since we can't have two desktop files or a single one with org.gnome.Hamster.GUI. Or maybe we can keep the upstream desktop file and add a NoDisplay to it? And this isn't an upstream issue.

Otherwise, patching the upstream service files could be an idea. I haven't looked into it.

@magicmyth
Copy link

I've just run into this issue myself and editing a copy of the .desktop file to have the org.gnome.Hamster.GUI.desktop indeed solved the issue for me. Note that when I launch the original desktop file hamster-service does correctly start in the background regardless.

This is under KDE Plasma 5.27. As a side note I get no icon in the indicator tray which was working with an old version I built from June 16th 2021 (I can't find the exact commit it was based on).

Just in case its useful I was led here from the application issue projecthamster/hamster#692.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants