In this article, we overview how to set up a third-party application to Ubuntu 16.04. I’ve got sublime text 3 for which I saved a working key and put it to a flash drive. Lately, I needed to install this app with a key to a VM.
I installed an app, executed an instruction and registered the app but got a few problems such as sublime didn’t show in a file manager and in unity dash. What did I do?
Playing with symlinks
What I did before? It adds a symbolic link to the folder ~/.local/share/applications
doing this
1 |
ln -s ~/Desktop/sublime_text_3/sublime_text ~/.local/share/applications/subl |
but it didn’t work. I’ve got sublime in the unity dashe and not in the file manager. Maybe this generated a file ~/.local/share/applications/sublime_text.desktop. I don’t know, but this file was already in a ~/.local/share/applications file. There I needed to add %F in this line
1 |
Exec=/home/neo/Desktop/sublime_text_3/sublime_text %F |
and then started to work the file manager default set up properties.
The file that needs to be put in ~/.local/share/applications
Well. for sublime works properly we have to add it to the ~/.local/share/applications. There should be a file sublime_text.desktop. It’s in my case with this settings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
neo@neo-virtual-machine:~/.local/share/applications$ cat sublime_text.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Sublime Text Icon=sublime_text.png Path=/ Exec=/home/neo/Desktop/sublime_text_3/sublime_text %F StartupNotify=false StartupWMClass=Sublime_text OnlyShowIn=Unity; X-UnityGenerated=true neo@neo-virtual-machine:~/.local/share/applications$ |
That’s it! 🙂
Now the sublime is accessible from the unity dash
and from the file manager, we are able to install a default application
Placed where could be put the configuration file.
There is one more place where we can add this file sublime.desktop
it’s /usr/share/applications