I can’t replicate this on my Linux box (Slackware) using the 64 bit version of Sublime 3211. However I don’t get a permission denied error, Sublime executes pkexec
to try and gain the elevation that it needs to get permission.
If I fiddle with my $SHELL
variable so that it doesn’t point at something that appears in /etc/shells
, I can trigger a failure of this process, but it doesn’t result in any freezing.
For example, given a file with the following permission and owner:
tmartin:dart:~> ll test.txt
-rw-r--r-- 1 root root 76 Nov 6 11:20 test.txt
If I open the file in Sublime and try to save it , the console says the following (and the error message is also what’s displayed in the popup):
error: Unable to save ~/test.txt
Error: administrator_copy_file(/tmp/.sublccd.tmp, /home/tmartin/test.txt) failed: /usr/bin/pkexec failed
Here the reason for the failure is that pkexec
doesn’t like that my shell is invalid, so instead of working it signals failure. I can then change the file owner to be myself, but in that case saving the file works as expected:
tmartin:dart:~> sudo chown tmartin.tmartin test.txt
tmartin:dart:~> ll test.txt
-rw-r--r-- 1 tmartin tmartin 76 Nov 6 11:20 test.txt
Are you not getting an elevation prompt from pkexec
in this instance? If not that may play into what’s happening here. Otherwise I would double check that you don’t have a third party package installed that’s perhaps doing something untoward in the background.