This firefox was installed from the Arch Linux repository.
Can I do the same for a custom launcher for Firefox Nightly that is located in the /opt/firefox-nightly/ directory?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Items can be added to XFCE4 menu very quickly. But before answering I want to mention that I will be using images to clarify things.
You first need to cd into $HOME/.local/share/applications/ from your terminal and then follow the steps:
exo-desktop-item-edit ./Firefox.desktop- this will launch a new window which can be used to create the desktop icon very easily. Save when you are done...
[Desktop Entry] Version=1.0 Type=Application Name=Firefox Comment=Browse the Web Exec=firefox-beta Icon=/opt/firefox-beta/browser/chrome/icons/default/default128.png Path= Terminal=false StartupNotify=false Actions=new-window;new-private-window Categories=Network;WebBrowser [Desktop Action new-window] Name=New Window Exec=/opt/firefox-beta/firefox --new-window %u [Desktop Action new-private-window] Name=New Private Window Exec=/opt/firefox-beta/firefox --private-window %u
The first lines (before Actions) were created by exo-desktop-item-edit. You will need to copy the lines from Actions, and in the Exec options you can change the path of your binary. In my case,
firefox-beta command is just a link to
/opt/firefox-beta/firefox. That's what the code should be.
If the step 1 isn't working, don't panic, copy-paste step 2 with a modification of Exec and Icon to the Firefox installation path. Of course, you can add these menus for any other application you want...
Voila! It works! Hope this helps!