this post was submitted on 11 Jul 2023
9 points (90.9% liked)

KDE & Plasma users

2786 readers
1 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE's software runs on GNU/Linux, BSD and other operating systems, including Windows.

founded 4 years ago
MODERATORS
 

I don't know a good way to explain this, but let's try.

Imagine that these icons...

...are all Google Chrome, but three different profiles. That is what I want.

What happens, whether creating .desktop files by hand or using kmenuedit is this:

  • the launcher will respect the unique icons I choose
  • I can force Chrome not to group the icons
  • The panel icons still all show the default Chrome icon...

...instead of using the icon I chose for each instance.

The reason, for the interested, is that I want to have a work profile, a non-profit profile and a personal profile which all open and can be pinned with a unique icon.

I've gotten far enough that having separate menu entries with unique icons and individual .desktop files and ungrouped panel icons seems like progress, but Plasma seems to treat any instance that points at the final binary as "the same."

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] -1 points 1 year ago (1 children)

I'm using ~/.local/share/applications. I tried this in FF and I don't see it working. Do you have a .desktop file you can share?

[–] [email protected] 1 points 1 year ago (1 children)

After rebooting this doesn't work anymore for some reason. it starts up with the correct logo but then changes.

All I did in the .desktop file was to add -P {new profile name} to every Exec line, change icon to another one, and change name under desktop entry to anything other than "Firefox web browser".

[–] [email protected] 0 points 1 year ago (2 children)

I have done the same thing with Chrome profiles, and it has the same effect - starts with correct logo then changes.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

found the solution for firefox, works perfectly.

here's an example file. replace the profile name in exec and the icon, you can also remove the icons under all entries except [Desktop Entry].

[–] [email protected] 0 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

Manjaro/KDE Plasma, this bug doesn't happen under Gnome apparently.

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (1 children)

@Limitless_screaming @ja2 Same, I use arch/KDE. Wayland i suppose? Using '--name name' work also on my side.

[–] [email protected] 1 points 1 year ago

Yes it's a KWin Wayland issue, and I already replied with this solution to @ja2 's comment. You should also change StartupWMClass to name; so that the icon applies correctly.