I want to add my own .desktop file to the Unity Launcher. I created firejailFirefox.desktop in ~/.local/share/applications/:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=firejailFirefox.desktop
Icon=firefox
Exec=firejail firefox %U
Terminal=false
StartupNotify=false
OnlyShowIn=Unity;
Then I go in the Dash (Windows key and typed the name of the application) and drag and drop it to the Unity Launcher. But now the firefox icon appears twice when I click on my firejailFirefox Launcher icon. How to get only one icon after starting firejail firefox from Launcher?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.04
Release: 17.04
Codename: zesty

aliasin.bashrc: ("alias firefox=firejail firefox %u") so you launch withfirefoxand it will run infirejail– George Udosen Sep 10 '17 at 20:42%Uwhen in my firefox desktop file I see%u... – George Udosen Sep 10 '17 at 20:44aliasin .bashrc does not work, if I start firefox through myfirejailFirefox.desktopLuncher icon. Did you tried it. MaybefirejailFirefox.desktopis using a Terminal with different setup. – Hölderlin Sep 10 '17 at 21:23