Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 4148  / 1 Year ago, sun, february 5, 2023, 6:45:43

I downloaded sublime text 2, unpacked it to /opt/sublime and created a link of /opt/sublime/sublime_text (executable) in /usr/bin so now I can just call it by typing "sublime" in console.



But it's not appeared in applications list: if I type sublime there, it won't be shown. Only if type sublime_text, I will see it. But there is more: when I click on it, it won't launch, nothing won't happen at all!



Besides, if I lock it Launcher, I won't be able to launch it: I close it, when I click on it on the Launcher panel, but it doesn't launch and nothing happens!



Why is that happening?


More From » 12.10

 Answers
7

You need to put a .desktop file in /usr/share/applications (for all user) or ~/.local/share/applications (for current user).



Here is custom desktop file, save it as sublime.desktop and put in the above location.



(gksu nautilus for root access in case you want to put it for all user)



Change the Exec & Icon entry as per your path



[Desktop Entry]
Name=Sublime Text 2
Exec="/opt/Sublime Text 2/sublime_text" %F
MimeType=text/plain;
Terminal=false
Type=Application
Icon=sublime_text
Categories=GNOME;GTK;Utility;TextEditor;Development;
Actions=New;

[Desktop Action New]
Name=New Editor Window
Exec="/opt/Sublime Text 2/sublime_text" --new-window


Source


[#31942] Tuesday, February 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
doredtness

Total Points: 153
Total Questions: 113
Total Answers: 106

Location: South Georgia
Member since Fri, Nov 13, 2020
4 Years ago
;