-
Notifications
You must be signed in to change notification settings - Fork 94
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
Web apps share icons with browser #103
Comments
The same thing happens for me with chrome-based apps but not firefox-based apps. Linux Mint |
I also have the same issue on chrome based browsers only. The windows are clubbed under the icon associated to the first opened instance. |
As a workaround, you may avoid this « shared icon » using isolated profile for each web-app. |
@Coeur-Noir How do you do that? |
This only works on chromium browsers, since Firefox profiles are always isoleted |
OK, that's why I didn't see the option. |
FYI, separate icon for firefox-based webapps is already fixed with PR #49 |
⋅ isolated profile choice is only given with chromium based web-browser hence |
Doesn't work on gnome. It highlights as active the youtube app for a second, then as soon as the window appears it switches to the firefox icon. It not influenced by whatever firefox is already launched or not |
According to looking glass, the youtube app has the wm class |
Is there any other workaround for chrome-based that doesn't involve using isolated profiles? one might have multiple google apps(gmail, spreadsheets, maps) and doesn't want to have multiple login instances fore each one of them, which could also be considered a suspicious behavior by google |
I'm on Majaro and have this problem with both Firefox and ungoogled-chrome (flatpak). I got it working by installing ungoogled-chrome from AUR (aka community repo aka NOT flatpak) and checking "isolated profile" |
I found a workaround for this problem. It has really annoyed me on me on Manjaro-Gnome (switched from Plasma to Gnome, in Plasma this issue did not exist). I played around with the .deskop files in So here is the fix which worked for me:
Done! So as i wrote earlier there is also one known downside of this workaround, the WebApp-Manager does not show the changed WebApps anymore. So if you want to delete the changed WebApps you have to delete the .desktop files and the profile folders found in I hope this helps and i also hope this is the only downside of this, since I am far from being an expert, I can not estimate this exactly. edit: I don't use Chromium based Browsers so this workaround was only done with Firefox. Maybe this also works for Chromium based Browsers. |
Update: My method didn't work because the icon would be shared in the dock if you had multiple apps open. I also tried @Khraut 's method which almost worked, except it had an issue with following links outside of the initial domain. For example, if creating an app for Fastmail, Reddit, FB Messenger, when someone sends a link in a message and I click it, I would expect the link to be opened in a new browser window. Instead, the webapp opens the link and now it's stuck. I found a solution which works well for me:
Src: https://github.com/bdombro/nativefier-linux |
@bdombro I also found this python script on GitHub: https://github.com/marten-de-vries/mozapp It seems to also be able to generate webapps that does not share their icon with the browser. But i don't know how these behave on this issue. |
If I add --name (same as classname) to the exec= of the .desktop file, then I get a separate entry on the taskbar in KDE with the proper icon. It is now not grouped into the firefox browser. I noticed this from checking out what the python script on GitHub: https://github.com/marten-de-vries/mozapp does as linked by Khraut above. |
@bkmo same as here filips123/PWAsForFirefox#80 (comment) maybe ? |
This should fix Firefox grouping all webapps in the taskbar. All I am suggesting is adding is a new parameter "--name (same as --class )" to the exec line of the .desktop file. This could be added at app creation time from the webapp-manager. It seems --name has to be the same as --class in order to get the proper taskbar icon. I am adding this to the Exec= of the .desktop entries ex: I was able to add it easily to /usr/lib/webapp-manager/common.py add |
I have created a PR 19570c8 for this. It works fine in my setup. Arch Linux, KDE Plasma 5.25, Firefox 102 |
Ok, ok, I was not saying you're wrong in any way ;-) I just wonder why I don't need to add --name in my situation. My « Exec= » lines look like :
I guess -P « calling » the name of a profile is quite the same as --name ? ? ? In launchers, mind the Exec and StartupWMClass entries :
In profiles.ini, mind the naming of each Firefox profile, the same wording for each matters.
|
Are you saying webapp-manager currently works properly by placing each app seperately in the tray? Mine does not. It also does not use current default profiles in Firefox, therefore no profiles.ini. My solution works by simply adding the --name parameter to the Exec= of the .desktop file. Try it! Are you actually using webapp-manager or your own custom profile solution? |
It also does not use current default profiles in Firefox, therefore no profiles.ini
hence then
might be enough ( I still have to understand what --new-window, --no-remote or --new-instance are supposed to change here - but in my situation --new-window is enough to have different icons for different websites, surprisingly. ) The icon is tied to a ( browser's ) profile. I did use ice web app ( from peppermint OS ) then web-app-manager for years, but no longer today as I can't make it work on my Ubuntu 22.04 - don't know why though. |
Ubuntu 22.04 uses snap version of firefox. That's why it is not working. Here I am providing the quick fix. Step 1. If you have created a web-app based on firefox for gitlab.com, it's profile would be located in Step 2. Modify the .desktop file. In the Exec line you would have something like
Change the path after
Note: I have have changed my home directory with As I already said, the whole bug is due to the fact that Ubuntu has dropped the apt version of firefox and |
@hsbasu thanks for caring but I'm not the one asking for help ;-) And you're right about the --profile path in case of a snap, it should be located somewhere inside I don't use Firefox as a snap in my Ubuntu 22.04, it's a manual installation from https://www.mozilla.org/en-US/firefox/all/#product-desktop-release, so here it's the expected and legacy paths inside $HOME. Regarding WebApp Manager in Ubuntu 22.04, as stated here https://www.omgubuntu.co.uk/2022/07/install-linux-mint-apps-on-ubuntu-ppa « the Webapp Manager tool (…) did NOT work with the Firefox Snap on my system. » And I can confirm it also does not work as expected with my « manual installation » : the WebApp opens without title-bar, even if I set Firefox to use a title-bar, making it very uncomfortable to manage its window. ( Here I suspect something related to Wayland or gtk4 and the script that modifies the Firefox interface. ) |
I am really sorry. I forgot that ubuntu by default uses Gnome desktop. Thanks for reminding. And I am using Cinnamon. I also have Gnome. I'll check what happens there. |
Firefox webapps uses proper icon as set for them. The generated .desktop has:
Google Chrome webapps are showing Google Chrome's icon. The generated .desktop uses no XAPP_FORCE_GTKWINDOW_ICON. Editing Google Chrome's one to be like the Firefox's (with XAPP_FORCE_GTKWINDOW_ICON), kinda works but... all windows of Google Chrome will use the same icon as the 1st launched app.
Although I can't explain why it works for Firefox, I suspect it may have some relation to this this commit: linuxmint/xapp@ccc70e5 Any thoughts? -edit- I've found it is easier to use native Google Chrome function, right top menu > more tools > create shortcut (tick option to open in a window). The launcher will properly use the website icon and won't stack over the regular Google Chrome icon in taskbar. The only drawback is: for websites with a PWA manifest, you can't set a custom URL (the launcher will use the one set as default in manifest, forcedly). |
Joining this existing issue for the problem I have been seeing too: "Shared icon in window lists" I have several Regardless of the annoyance of this issue, it is cool to see how properly organized you all are, and how long-suffering. This ticket being started in 2021 Q2 makes it seem like a good candidate for closure :) Let's get this one off the to-do list! Is this solution viable? #103 (comment) Is there an equivalent for |
Since my last post, I tried the @bdombro suggestion: #103 (comment) ...
I already had Also it remembers the location of the window between sessions. Web App manager usually started all windows in the left half of the entire screen on the primary display every time, and never remembered otherwise. Is each native executable >200MB? Well, yes... the browser is packaged with each Electron instance, per overkill usual. But at least now it works while/if Web App manager evolves. Will check back in a year or so :) Thanks @bdombro |
Oh man. So, using |
I am experiencing something similar on Arch Linux with KDE Plasma 5.27.9 and Wayland. When the app first opens, the correct icon is shown in the taskbar, but then is collapsed into the Firefox icon. The app is also showing as Firefox in the overview window or task switcher (ALT+TAB). This does not happen under X11. |
same here, Fedora 39 + Gnome 45. |
Same here Fedora 38 + Gnome 44 WebApps created with Firefox all show up as Firefox and not as individual Apps. |
I can confirm that just adding Tested on Fedora 38 + Gnome 44 / Fedora 39 + Gnome 45 |
I've created a MR with a fix: #272 |
@clefebvre and @saschaeggi does this fix require |
@digitalextremist the related MR fixes the window handling in wayland |
@saschaeggi perhaps it is a bit early to close the bug then, given that it was originally reported for x ? |
@tobiasrenkin I leave this decision to the maintainer. Have you tested if this also fixes your issue in X11? |
Thanks for the fix @saschaeggi, it is appearing in my taskbar on KDE Plasma correctly now. However it still appears incorrectly in the Overview screen, as well as the window title bar. |
I can second this observation for KDE Plasma 5.27.9 on Wayland. Task-Manager icon displays correctly now. Window title and Overview show the default Wayland icon. |
As exemplified here, the main Firefox windows and the Youtube webapp share the same "handler", which in practice means that the web app is treated as a normal Firefox window instead of a separated application.
OS Manjaro
GNOME 3.38
Firefox 88 (Flatpak)
Could be related to #100
The text was updated successfully, but these errors were encountered: