You are not logged in.

#1 2015-01-20 17:14:08

✩ ✩ ✩
Member
From: Riga, Latvia
Registered: 2015-01-17
Posts: 9

Starting Sublime Text 3 as root

I'd really like to use Sublime Text 3 for editing various configuration files and ditch vim, but I have an issue with launching Sublime Text 3 as root.

I installed gksu, tried launching it, but it doesn't. Aftering entering root password nothing happens. No errors, no windows, nothing.

If I launch it with just sudo, it opens and I can work with the file, but .. is that even recommended to use sudo for launching GUI applications?

Offline

#2 2015-01-20 17:16:55

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Starting Sublime Text 3 as root

You don't provide information on what is happening and what you are doing. Details!

Offline

#3 2015-01-20 17:18:46

✩ ✩ ✩
Member
From: Riga, Latvia
Registered: 2015-01-17
Posts: 9

Re: Starting Sublime Text 3 as root

Awebb wrote:

You don't provide information on what is happening and what you are doing. Details!

✩ ✩ ✩ wrote:

I installed gksu, tried launching it, but it doesn't. Aftering entering root password nothing happens. No errors, no windows, nothing.

I do. What I wrote translates to:

gksu subl3

Last edited by ✩ ✩ ✩ (2015-01-20 17:53:09)

Offline

#4 2015-01-21 10:37:09

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Starting Sublime Text 3 as root

The frist two results of http://lmgtfy.com/?q=run+sublime3+as+root both give valid solutions

But you really should not do this. Write a script, that copies the file to a folder your user can read from, open the file in sublime and copy it back with elevated permissions.

Offline

#5 2015-01-23 06:47:46

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Starting Sublime Text 3 as root

You might like slap.

Offline

Board footer

Powered by FluxBB