Home Download Buy Blog Forum Support

Linux opening new files from file explorer

Linux opening new files from file explorer

Postby bdoherty09 on Wed Mar 14, 2012 5:04 am

When I open a new file from the file explorer and have Sublime open already, it opens another instance with all of the same files open. It says the config option "open_files_in_new_window" is only for OSX and it doesn't seem to change anything when I set this to false. Anyone know how to send the new file to the already open instance as a new tab?

Really liking Sublime but not sure I can handle not being able to open a file from nautilus.

Thanks
bdoherty09
 
Posts: 4
Joined: Wed Mar 14, 2012 5:01 am

Re: Linux opening new files from file explorer

Postby jps on Wed Mar 14, 2012 6:29 am

If you run Sublime Text from the command line, you'll likely be getting a message about libgio (part of GTK) being too old, so single instance support is disabled.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Linux opening new files from file explorer

Postby bdoherty09 on Wed Mar 14, 2012 5:11 pm

jps wrote:If you run Sublime Text from the command line, you'll likely be getting a message about libgio (part of GTK) being too old, so single instance support is disabled.


You are right on the money. Thanks. Do you know if there is a way to update the library on Ubuntu 10.04 or am I going to need to update my distribution?
bdoherty09
 
Posts: 4
Joined: Wed Mar 14, 2012 5:01 am

Re: Linux opening new files from file explorer

Postby strags on Tue Jun 26, 2012 5:51 pm

I'm experiencing the same issue (Ubuntu 12.04), but seeing no such errors on the console from which Sublime is invoked.

In fact, with --debug, I see this:

Code: Select all
$ ~/bin/Sublime\ Text\ 2/sublime_text . --debug
main.cc:1283 main                                                 startup, version: 2210 linux x32 channel: stable
main.cc:1297 main                                                 executable: /home/ben/bin/Sublime Text 2/sublime_text
main.cc:1298 main                                                 working dir: /home/ben/tmp/puz
main.cc:1299 main                                                 packages path: /home/ben/.config/sublime-text-2/Packages
main.cc:1300 main                                                 settings path: /home/ben/.config/sublime-text-2/Settings
main.cc:1345 main                                                 Passing command line to existing instance


which would suggest to me that single-instance mode is working ok... but it still creates a new window.
strags
 
Posts: 3
Joined: Tue Jun 26, 2012 5:32 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 19 guests