Page 1 of 1

mousepad with root access doesn't work

Posted: 22 Jul 2017, 07:25
by Kulle
I use v3.2.2 Xfce
mousepad in terminal works.
mousepad in terminal with root access doesn't work.
Error:
(mousepad:4059): dconfig_WARNING**:
failed to commit changes to dconfig: The connection is closed

pFilesearch results:
/home/guest/.config/Mousepad
and
/usr/bin/mousepad
That's confusing: Mousepad and mousepad
Can this be the cause?
What to do?
Thanks for the help

Re: mousepad with root access doesn't work

Posted: 22 Jul 2017, 08:47
by jssouza
Use su -l (that is, a login shell) to gain root access in the terminal and then run mousepad.

Re: mousepad with root access doesn't work

Posted: 22 Jul 2017, 09:27
by donald
I may add ,that from within the guest account - which one should use -

Code: Select all

guest@porteus:~$ sudo mousepad /etc/usm/mirrors-salix.txt
is sufficient.

Just in case....
"sudo" requests the guest account password .

Re: mousepad with root access doesn't work

Posted: 22 Jul 2017, 17:07
by Ed_P
And I might add that from within the guest account this works also:

Code: Select all

echo guest | sudo -S mousepad /etc/usm/mirrors-salix.txt
:)

Especially handy when used in a script.

Code: Select all

#!/bin/sh
if [ ! $1 ]; then echo "-No file specified-"; exit; fi
echo guest | sudo -S mousepad $1

BTW Kulle I'm not seeing your problem with my Cinnamon DE.

Re: mousepad with root access doesn't work

Posted: 22 Jul 2017, 18:06
by brokenman
If you are in a root account and you want to edit a file as root try this: sudo -i mousepad