6
I downloaded the sublimeText2
for text editing and would like to define it as the default editor instead of the gedit
but I’m not getting it.
Attempts
Arquivo -> abrir com -> outro aplicativo -> visualizar todas as aplicações
however it does not appear in the listing, I believe it is because it is downloaded and executed, not installed.Terminal -> su -> usr/share/applications/
- archive
sublime.desktop
vim defaults.list
replace allgedit
forsublime
- archive
Terminal -> su -> usr/share/applications/
- archive
sublime.desktop
vim mimeinfo.cache
replace allgedit
forsublime
- archive
Sublime content.desktop
[ktop Entry]
Name=Sublime
Comment=Sublime text Editor
Exec=sublime_text %U
Icon=sublime-dark-icon.gif
Terminal=false
Type=Application
Encoding=UTF-8
Categories=text/editor;
MimeType=text/plain;
Question
Would anyone know what I’m doing wrong? and how to solve?
you have to necessarily use the portable version?
– Caio Felipe Pereira
@Caiofelipe actually I just entered the site and downloaded this link c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2
– Guilherme Lautert
I had a similar problem with windows, and it was the portable version’s fault. this answer helped me http://stackoverflow.com/questions/9450895/sublime-as-default-editor but it’s windows, right... I don’t know if it helps you much
– Caio Felipe Pereira
@Caiofelipepereira was worth the try, but no help, linux is quite different.
– Guilherme Lautert
I put a reward/ see if anyone else is interested in helping
– SneepS NinjA
da p/ do a gambiarra, rename the gedit la no /usr/bin and place the sublime with the same name(renamed) there
– SneepS NinjA
Thank you, @Sneepsninja, are even thinking of for a reward.
– Guilherme Lautert
I was researching to create or define the sublime as
application
, however the only references I found commented on themain menu
that I already have, but does not appear in the applications.– Guilherme Lautert
@Sneepsninja I went back to testing with the
.desktop
and managed to resolve was missing theX-KDE-Protocols=Sublime
in the file, this way appears in theOpen with
properties. If you want to post a reply with this solution, I will mark as solved for you to resume your points.– Guilherme Lautert
post yourself the solution, can mark your own answer as accept without problems
– SneepS NinjA