I want to place a link/shortcut/launcher in my unity panel (ubuntu 12.10).
I followed this tutorial on handytutorial.com to create a custom launcher and drag it to the panel.
I just need to know which command do I have to input. Is this possible?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
If the question is how to open a file/folder, the answer is always xdg-open.
From man xdg-open:
xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser. If a file is provided the file will be opened in the preferred application for files of that type. xdg-open supports file, ftp, http and https URLs.
In this specific case the commmand
opens folder in your default file manager, be it Nautilus, Dolphin, Thunar or anything else.
Use the command
So for example:
nautilus /home/oaskamay will open up my home (
In addition, if you need to open-up the GUI with root permissions, run
gksu nautilus <path>. It works with every GUI front-ends too (e.g.
gksu gedit /etc/default/grub).
It's important to note that you should never start GUI apps like so
sudo gedit /etc/default/grub.