Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I created a custom launcher to launch a web app (e.g., Bit.ly) as a Chromium single-site browser complete with separate Chromium profile and separate icon.

(I also created a new category in /etc/xdg/menus/applications.menu, referenced the new category in my launcher file, and the ClassicMenu indicator does reflect this correctly, while the Dash ignores the new category.)

Then I placed the .desktop launcher in ~/.local/share/applications so that it could be found by both the Dash and the ClassicMenu indicator.

I also made a separate "web apps" launcher for the Unity dock, from which to launch multiple web apps (all listed in a static quicklist). In this case, I experimented with the "Exec=" line by trying both the actual command to execute, as well trying the previously created .desktop launcher specifically for Bit.ly. (Referencing the .desktop file in the "Exec=" line didn't work for me.)

Launching the Bit.ly app from the Dash was the only method which showed a separate icon in the Unity dock, rather than treating it as an additional Chromium window.

I examined a launcher from /usr/share/applications (e.g., FileZilla) which is launched by both the Dash and the ClassicMenu indicator with it's own icon, but I didn't see anything unique in that file to add to my own Bitly file. Is there any line I can add to my custom Chromium apps launchers that will cause the menu system to launch them as separate apps, rather than more Chromium windows?

The thing is, I don't always want to have to remember what apps I've made launchers for, and thus have to search for them. I'd like browsing option too. Furthermore, I don't want to clutter the Unity dock with 30 launchers either, I'd prefer to use the dock only for window-switching.

This is the launcher contents:

[Desktop Entry]
Name=Bitly
Comment=URL shortener with ability to save links
Icon=/abode/sync-private/local/aux/icons/bitly-128.png
Type=Application
Terminal=false
Hidden=false
Exec=/usr/bin/chromium-browser --user-data-dir=/abode/sync-private/local/aux/ssb-profiles-chromium/misc-profiles/bitly --app=http://bit.ly
# next line is experimental, required hacking in /etc/xdg/menus/applications.menu (?)
Categories=SSB;
# Version=1.0
# GenericName=URL Shortener

Version and GenericName are commented out since they seemed to have no impact.

This is a screenshot of the Bitly app opened via the Dash, with the resulting independent dock icon. Also shown is the indicator menu, which will not yield an independent icon:

screenshot

Everything above also happens with Mozilla Prism as well.

share|improve this question

closed as too localized by Luis Alvarado Mar 14 '13 at 16:02

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
I could be wrong but I think this is due to the application's executable being recognised and grouped with existing items. One idea is to try creating a symlink to the chromium-browser for use just in the desktop entry. –  Cas Mar 29 '12 at 17:48
add comment