I want to add my own .desktop file to the Unity Launcher. I created firejailFirefox.desktop in ~/.local/share/applications/:

[Desktop Entry]
Exec=firejail firefox %U

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

enter image description here

  • A screen shot would help, but isn't that same icon used by the firefox app? – George Udosen Sep 10 '17 at 20:11
  • @George, yes it's the same icon. One Icon which belongs to firejail firefox which I added to Luncher and the second firefox icon appears because Firefox is starting by clicking the first icon. – Hölderlin Sep 10 '17 at 20:24
  • Why not make an alias in .bashrc: ("alias firefox=firejail firefox %u") so you launch with firefox and it will run in firejail – George Udosen Sep 10 '17 at 20:42
  • Another I see %U when in my firefox desktop file I see %u... – George Udosen Sep 10 '17 at 20:44
  • 2
    Possible duplicate of Two icons on unity panel on non-standard application launch – pomsky Nov 30 '19 at 19:19

Your Answer

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

Browse other questions tagged or ask your own question.