mousepad with root access doesn't work

Non release banter
Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
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.
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

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

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.

donald
Full of knowledge
Full of knowledge
Posts: 2064
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
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 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

#!/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.
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 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