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

Desktop icon for default (base image) Firefox is missing in dash (after Fedora 40 upgrade) #572

Open
rugk opened this issue Jun 9, 2024 · 1 comment
Labels
bug Something isn't working f40 Related to Fedora 40

Comments

@rugk
Copy link

rugk commented Jun 9, 2024

Describe the bug
After updating to Fedora 40, with an installation, which also had/has Firefox installed from Flathub as a flatpak, only the flatpak version is shown in the GNOME dash.

To Reproduce
I have Firefox from Flathub as a flatpak installed.
Also, obviously, the default base image Firerox is installed.

In Fedora 39 I had and could pin them both to the dash, one was named "Firefox Web Browser" and the other one "Firefox" IIRC.

Now, i updated to Fedora 40.
After the upgrade, only ne entry is there – the one named "Firefox" – and it starts the flatpak version.


I see no easy way – as a user – to (also) get "back" the "old"/"layered" (by default) Firefox.
As it starts different Firefox profiles (obviously), that is immediately visible.

$ pwd           
/var/lib/flatpak/exports/share/applications
$ ls -la *firefox*                                                   
lrwxrwxrwx. 1 root root 101 30. Apr 00:07 org.mozilla.firefox.desktop -> ../../../app/org.mozilla.firefox/current/active/export/share/applications/org.mozilla.firefox.desktop

I know this is likely due to https://fedoraproject.org/wiki/Changes/RenameFirefoxDesktopFile.

So, as I previously reported this in the Fedora discussions, I had found a solution, which has worked in Fedora Silverblue 40.20240430.0 (2024-04-30T00:37:35Z) at least:

$ sudo mkdir -p /usr/local/share/applications/
$ sudo ln -s /usr/share/applications/org.mozilla.firefox.desktop /usr/local/share/applications/org.mozilla.firefox-rpm.desktop
$ sudo update-desktop-database /usr/local/share/applications/

However, at least since Fedora Silverblue 40.20240519.0 (2024-05-19T00:40:18Z), it is broken again.
If /usr/local/share/applications/org.mozilla.firefox-rpm.desktop is named differently, the layered Firefox cannot be started at all, it starts/does nothing then. Also links are not resolved when this version is set as the default browser in GNOME Settings.

Expected behavior
Two entries, one for Firefox flatpak and one for layered Firefox (rpm):

Screenshots
See above

OS version:

$ rpm-ostree status -b
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
BootedDeployment:
● fedora:fedora/40/x86_64/silverblue
                  Version: 40.20240609.0 (2024-06-09T00:56:00Z)
               BaseCommit: 1a1bee91fe13bd449808661e1c3c5dcb7b03db14f4b827ef5704117507b6d05c
             GPGSignature: Valid signature by 115DF9AEF857853EE8445D0A0727707EA15B79CC
      RemovedBasePackages: noopenh264 0.1.0~openh264_2.4.0-1.fc40
$ rpm -q firefox                                                      
firefox-126.0-7.fc40.x86_64
$ firefox --version
Mozilla Firefox 126.0

Additional context
Originally reported in Fedora Discussions: https://discussion.fedoraproject.org/t/after-fedora-40-upgrade-desktop-icon-for-default-base-image-firefox-is-missing-in-dash/114934 (there are also more details)

@rugk rugk added the bug Something isn't working label Jun 9, 2024
@chrisawi
Copy link

chrisawi commented Jun 9, 2024

I'm not sure there's a bug here. You can only have one 'active' installation for a given app ID. This is a well-established limitation of the whole stack.

The fact the Firefox RPM and flatpak originally had different .desktop file names was pure happenstance.

I'll expand a bit more on the forum thread.

@travier travier added the f40 Related to Fedora 40 label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working f40 Related to Fedora 40
Projects
None yet
Development

No branches or pull requests

3 participants