Open ghost opened 8 years ago
When Sublime is run as root, it (1) fails to recognise my license
You license is associated with your user account, and as the root is another user account, sublime will not get the licence. If you want to run Sublime as root, use the portable version. Also, there is not need for that, because when I was using Linux Mint 18 Xfce, Sublime text opens a pop up, asking for the root password, when you modify a root file and try so save its changes. So, that way you may edit root files with Sublime Text, without needing to run it as root.
Ah, OK, I might look into how to get the portable version.
As there being no need to run Sublime as root: well, so doing does avoid having to enter the root password every time one wants to save a file. That is: even multiple changes of one and the same file requires that one enter the password, after each change/save.
so doing does avoid having to enter the root password every time one wants to save a file.
That is sound like a feature request, what do you think? Would be good for you, the Sublime Text
cache your password until the session closes?
Yes, I think that would be a very good idea.
On 24/09/2016 14:49, Evandro Coan wrote:
so doing does avoid having to enter the root password every time one wants to save a file.
That is sound like a feature request, what do you think? Would be good for you, the |Sublime Text| cache your password until the session closes?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SublimeTextIssues/Core/issues/1401#issuecomment-249365851, or mute the thread https://github.com/notifications/unsubscribe-auth/AJiR_pISm6MHIwTbTgpGe1v0nuXYQbBfks5qtSpfgaJpZM4KFeWP.
To my request that, when one is editing a file that needs root privileges, Sublime doesn't ask for authentication more than once, I would like to add the following request. Could we have Sublime allow - after authentication (asked for, ideally, only once) to save files to locations that require root rights?
At present, the combination of the above - together with the fact that simply typing 'sublime' at a command prompt doesn't open the programme, at least not if one has not set up a (root) aliases file - means that for editing root files I use one text editor, and Sublime for others. So I have to have two editors open. Indeed sometimes, when I do manage to open Sublime as root, I have two separate instances of Sublime and one instance of another text editor. When one factors in tabs, the whole situation becomes ungainly and confusing. 'Where is the file I was editing?' becomes a frequent question - to which the answer should be: 'in my [single] text editor'.
Summary
Sublime text behaves weirdly when run as root (using gksudo on Linux Mint).
Expected behavior
1-3 should not happen.
Actual behavior
When Sublime is run as root, it (1) fails to recognise my license, (2) fails to recognise a recent update to a new build (but instead prompts for the same update). Also, (3) I experienced some graphical corruption.
Steps to reproduce
Environment