set sublime text as default

I installed sublime text as an “ubstable package” since it’s not available in yast. That might be why I can’t set it as the default text editor. When selecting properties for a file it’s not available as an option for default applciation.

How do I set it as the default for certain files?

It doesn’t sound such a wise move
But are you using kde or gnome?

That could be, but that’s all that’s available for sublimetext and sublimetext2. If you could recommend a similar application that’s more stable I’m all ears.

I’m using gnome.

Gnome tweak tool is used to set the fonts

sublime text is not a font, it’s an application.

Any idea how to set an application as the default application to open a file when it’s not showing as an option in the menu?

On 2013-01-29 20:06, goltoof wrote:
>
> Any idea how to set an application as the default application to open a
> file when it’s not showing as an option in the menu?

Don’t you see an entry to browse files? You should be able to enter the
binary program there.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

You can set the binary file by using the browser.

Is anybody actually paying attention to what I’m saying here??

I repeat, THERE IS NO OPTION TO SET SUBLIMETEXT AS THE DEFAULT PROGRAM.

In other words, I can’t even see the application available in the menu through the browser to set it as the default for binaries.

There’s got to be another way, but what?

On a sidenote, I’m also not able to see files when I navigate to certain drives. Is there some permission issue with the application itself? Another thing is it doesn’t even show the default icon for the software…

Did you consider asking at: Sublime Forum • Index page

Yes, 37 views, no answers yet.
Sublime Forum • View topic - SLT2 in openSUSE 12.2

Let’s say that this is just any other random program out there. I install “RandomWhateverSoftware.rpm” that claims it works under Opensuse12.2.
It installs fine with no errors, works flawlessly with with the exception that the software is not listed as an option to open binaries in the nautilus browser menu.

What do you think would cause the software to behave in this manner?

You could try the IRC
#suse
or
#opensuse-gnome

On 01/31/2013 06:46 AM, goltoof wrote:
> open binaries in the nautilus browser menu.

when you say “binaries” what do you mean exactly?

in your first post you say you want sublime set to be the default
opening application “for certain files”, how would the system know which
files are those “certain files”?

do you want it to open all executable files? or all non-text files, or what?

> What do you think would cause the software to behave in this manner?

maybe it is not set up to do so in the gnome configs?? :wink:

those set up steps are normally done by the RPM used to install the
application…

i don’t have much experience in gnome in the last ten years, and i’ve
never run 12.2, but:

on my system there is a path like main menu > Configure Desktop -
Personal Settings > File Associations, wherein the user can associate a
particular application (like ‘sublime’ maybe) with a certain type of
file (which is where you have to decide what are the “binaries” you
speak of in your question)…

sorry, like the others here i can’t offer a lot of help setting up a
never before heard of application…if the sublime forum can’t help,
you may have to do all the digging yourself…


dd

don’t know my way around gnome but surely it has a similar option to KDE???

In KDE I installed sublime2

Then, right clicked on a text file > properties > spanner icon > Add > Select sublime2 from the menu > OK > move sublime2 to the top of the listed programs

Now when clicking on any txt file it opens in sublime2 by default.

Have to say that immediately after testing I removed sublime2 as I could not think of any good reason to keep it.

The reason you don’t find it in the openSUSE repositories is that it is not a free program.

from the sublime website

Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use.
Licenses are per-user, rather than per-machine, so you can enjoy Sublime Text on as many computers and operating systems as you wish with your license . . .**Single user = Total: USD $**70

for that much money I’d be asking them to provide an openSUSE specific rpm and a hell of a lot of support to go with it.

> for that much money I’d be asking them to provide an openSUSE specific
> rpm and a hell of a lot of support to go with it.

+1

and, send me $25 for the time i already have into its support!!


dd

I am a new user at suse, used Ubuntu for sometime (installed suse couple days ago)

Seems like this guys don’t know what you are asking. I managed to make sublime work as the default this way:

1. download sublime Sublime Text - Download
2. extract the file (right click -> extract here), now those files are the files we need, they are the “installed sublime” (like someone installed sublime and just copied the folder)

**3. Open dolphin file manager in super user mode ** (kickoff application manager and type dolph in the search bar, it will show you “file manager - super user mode”)
- Find the extracted sublime text 2 folder (downloads usually, or wherever you extracted it)
- Copy or cut that sublime folder and go for ROOT–>OPT and paste the folder there
4. Open Terminal and type
**sudo ln-s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime **

Now you should be able to open sublime by just typing “sublime” in the terminal… try it out… you can also right click on the desktop and click “run command”, type sublime and it should open it.

  1. Now you want to set sublime as an application (this is where your problem is)

Use dolphin in super user mode and go to root/usr/share/applications/
-right click on free space and go create new -> link to application
General tab -> set name as Sublime
Permissions tab–> Check the “is executable”
Application tab –> type the name sublime text, description: text editor AND command click the browse button –> go for
Root->Opt-Sublime text folder->and click sublime text

Now you almost finished… find any text file right click it –>propertise —> file type options
-there should be liste KWriter and Lbireoffice
-Click Add button click applications and choose sublime text

thats it go ok and you are ready to go…

This is not the best way as I said I am a totally new user and this is the way I managed it