mousepad with root access doesn't work

Non release banter
Post Reply
White ninja
White ninja
Posts: 25
Joined: 28 Jan 2017, 10:39
Distribution: v3.1 32bit
Location: Berlin

mousepad with root access doesn't work

Post#1 by Kulle » 22 Jul 2017, 07:25

I use v3.2.2 Xfce
mousepad in terminal works.
mousepad in terminal with root access doesn't work.
(mousepad:4059): dconfig_WARNING**:
failed to commit changes to dconfig: The connection is closed

pFilesearch results:
That's confusing: Mousepad and mousepad
Can this be the cause?
What to do?
Thanks for the help

DEV Team
DEV Team
Posts: 615
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm
Location: Liechtenstein

Re: mousepad with root access doesn't work

Post#2 by jssouza » 22 Jul 2017, 08:47

Use su -l (that is, a login shell) to gain root access in the terminal and then run mousepad.

Full of knowledge
Full of knowledge
Posts: 1364
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: mousepad with root access doesn't work

Post#3 by donald » 22 Jul 2017, 09:27

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 .

User avatar
Posts: 3955
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: mousepad with root access doesn't work

Post#4 by Ed_P » 22 Jul 2017, 17:07

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

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.

User avatar
Site Admin
Site Admin
Posts: 5867
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil

Re: mousepad with root access doesn't work

Post#5 by brokenman » 22 Jul 2017, 18:06

If you are in a root account and you want to edit a file as root try this: sudo -i mousepad
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply