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

KDE & Plasma users

2809 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
[–] Limitless_screaming@kbin.social 1 points 1 year ago* (last edited 1 year ago) (1 children)

This works for me for Firefox. Are you making the .desktop files in /usr/share/applications because that won't work; you have to go to ~/.local/share/applications and make the files there.

[–] ja2@lemmy.world -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?

[–] Limitless_screaming@kbin.social 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".

[–] ja2@lemmy.world 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.

[–] Limitless_screaming@kbin.social 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].

[–] GolDNenex@mastodon.social 0 points 1 year ago (1 children)
[–] Limitless_screaming@kbin.social 1 points 1 year ago (1 children)

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

[–] GolDNenex@mastodon.social 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.

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.