GNOME Bugzilla – Bug 665204
The Shell doesn't link 'Opera' with its launcher if it(GS) crashes or restarts.
Last modified: 2021-07-05 14:07:58 UTC
This one is fairly easy to test. Start the Opera browser, pin it to Dash, Alt+F2, 'r', you'll see that Opera with get another icon at the bottom. opera-browser.desktop: [Desktop Entry] Type=Application Version=1.0 Name=Opera GenericName=Web browser Comment=Fast and secure web browser and Internet suite Icon=opera-browser TryExec=/usr/bin/opera Exec=/usr/bin/opera %U Terminal=false MimeType=text/html;text/xml;application/xhtml+xml;text/vnd.wap.wml;text/wml;application/x-mimearchive;application/mime;application/xml;application/rss+xml;application/rdf+xml;image/svg+xml;application/x-opera-uniteapplication;application/x-opera-extension;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/mailto; Categories=Network;WebBrowser; StartupNotify=true
That means that Opera doesn't set its WMClass to "opera-browser".
Why does it work at first then? JDownloader, for example, doesn't work well with Dash, no matter what you do. Opera does work, but it loses its launcher after a GS restart.
Because when you launch Opera through GNOME Shell, you're telling GNOME Shell to launch it "opera-browser.desktop", and ties the X window and desktop file together. When you restart GNOME Shell, it loses this information. I have a patch somewhere that saves this information as an X atom on the window, but it's unreviewed at this point.
*** Bug 691643 has been marked as a duplicate of this bug. ***
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.