3

I've got the following .desktop files placed in ~/.local/share/applications for custom launchers for a full screen experience of Chromium:

[Desktop Entry]
Terminal=false
Type=Application
Name=FastMail
Exec=/usr/bin/chromium-browser --app=https://www.fastmail.com/mail/Inbox/
Icon=fastmail-icon.svg

And

 [Desktop Entry]
 Terminal=false
 Type=Application
 Name=SoundCloud
 Exec=/usr/bin/chromium-browser --app=https://soundcloud.com/stream
 Icon=soundcloud-icon.svg

These sit in the Launcher (after adding them from the Dash) and launch their respective full screen web-app-as-desktop app experiences fine.

The problem is that if I open both of them, Unity gets confused and puts them all under the same icon.

Any way to work around this?

2

Ok I hacked around it by creating copies of the executable (had to be the /usr/lib/ executable and not the /usr/bin/ script):

sudo ln /usr/lib/chromium-browser/chromium-browser /usr/lib/chromium-browser/chromium-browser-soundcloud
sudo ln /usr/lib/chromium-browser/chromium-browser /usr/lib/chromium-browser/chromium-browser-fastmail

Then updated the .desktop files to point to e.g. /usr/lib/chromium-browser/chromium-browser-fastmail instead of /usr/bin/chromium-browser

I also added a TryExec=/usr/bin/chromium-browser

Let me know if anyone has a better way of doing it according to the desktop spec at https://specifications.freedesktop.org/desktop-entry-spec/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.