Closed signdo closed 9 months ago
Normally right-click the App icon to display the menu:
Foliate:
Click Unnamed
but nothing happen. Maybe that's why I can't start it?
No, although that is a bug (which has been fixed in git), with this bug I can still open it fine.
I don't know if there's a better way to troubleshoot this, but you can try and find the .desktop file (see https://discourse.flathub.org/t/where-are-all-the-installed-desktop-files-located-for-each-application/2147) and inspect it to see if there's anything wrong with the way it's launching the app.
Referring to the article link you sent, I compared the .desktop
file of other Flatpak app. And then modify the /var/lib/flatpak/exports/share/applications/com.github.johnfactotum.Foliate.desktop
.
I re-logged in the desktop after attaching the following content to the file, it is now open normally, and also fixed the bug of right-click displaying Unnamed
:
[Desktop Action new-window]
Name=New Window
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=foliate --file-forwarding com.github.johnfactotum.Foliate @@u %U @@
I just added these lines, not change the original content.
It works for me even with the missing action, though. Are you sure that's what's causing this? Does it fail to launch if you run the unmodified .desktop
file with gio launch
?
But I guess the missing desktop action is already removed, so there's nothing that needs to be done anymore, either way.
I tried to remove the extra lines I had added and re-logged into the desktop. Then click icon to open the Foliate, which results in the same failure as before.
Then run gio launch /var/lib/flatpak/exports/share/applications/com.github.johnfactotum.Foliate.desktop
. It can be opened.
I suspect that this happens due to the different versions of Flatpak or other related software used. My Flatpak version is 1.14.4 on Debian12.
Oh, please forgive me for Posting the last comment, now I know the real reason.
I noticed the superfluous content Actions=new-window;
in line 64, which is the presence of which prevents clicking on icon to open the Foliate if not implement it. I deleted it and now I can open the Foliate normally when I re-login.
OK. Thanks for testing. I guess we can close this as a duplicate of #1111.
Describe the bug
Click icon can't open the Foliate. But run command
flatpak run com.github.johnfactotum.Foliate
will open it.Expected behavior Click app icon, then it will be launched.
Version:
Additional context