Author Topic: [Solved} lxappearance freezes as root  (Read 2633 times)

apprentice

  • Guest
[Solved} lxappearance freezes as root
« on: September 16, 2016, 06:53:41 PM »
hi all

nice place you got here
been lurking and liking for a long time

decided MX-15 was getting a little... something
never was fond of xfce anyway, lxde either for that matter
but watt has grown on me
besides there´s openbox underneath right

k, enough blah,blah

any way i try to open lxappearance as root to change spacefm´s fugly root appearance the machine freezes
except the mouse, he can run around all day
only thing that works is hard reset

ive tried sudo, gksudo, gksu
using a root term to call lxappearance
i even did the polkit pkexec yes,yes,yes thing

but alas, no joy

now i know sudo-lxappearance worked for me in MX-15
but i don´t remember doing anything to make it so

is there a difference in the way debian and ubuntu handle this?

i will be happy to provide any info you need

cheers



« Last Edit: September 17, 2016, 03:55:16 AM by apprentice »

billwho

  • Full Member
  • ***
  • Posts: 34
    • View Profile
Re: lxappearance freezes as root
« Reply #1 on: September 16, 2016, 07:39:14 PM »
32 or 64-bit system?

Does using this work?
Menu > Preferences > Customize Look and Feel

and from terminal this works:
lxappearance

Both work on this 32-bit machine.

--but--

sudo -s
lxappearance

This causes a hang, need to hard reset.
Lubuntu 16.04.1 also hangs
WattOS R9 also hangs

Debian LXDE testing (stretch) gives this message but does open lxappearance

** (lxappearance:2019): WARNING **: lxappearance.c:67: Failed to connect to the session message bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

--THEN--

ssh login to WattOS R10 after causing it to hang with sudo lxappearance
+ it is still alive
+ top as pid
PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
3271 tech      20   0    8068   3556   3024 R   0.2  0.2   0:00.12 top
3269 root      20   0    6528   1688   1488 S   0.0  0.1   0:00.00 dbus-launch
3268 root      20   0   23820   8988   8188 S   0.0  0.4   0:00.01 lxappearance
3256 root      20   0    6716   4344   3156 S   0.0  0.2   0:00.04 bash

It does look like it is waiting for dbus

from ssh this works:
sudo reboot
« Last Edit: September 16, 2016, 08:51:49 PM by billwho »

apprentice

  • Guest
Re: lxappearance freezes as root
« Reply #2 on: September 16, 2016, 09:27:05 PM »
thanks billwho

32 or 64-bit system?

Does using this work?
Menu > Preferences > Customize Look and Feel

and from terminal this works:
lxappearance

Both work on this 32-bit machine.
64 bit and both work

--but--

sudo -s
lxappearance

This causes a hang, need to hard reset.
Lubuntu 16.04.1 also hangs
WattOS R9 also hangs

Debian LXDE testing (stretch) gives this message but does open lxappearance

my debian sid linuxbbq sudo lxappearance works as expected

and i´m sorry but i don´t understand below
does this mean i need to look at dbus?
a quick google gives me some dbus-sudo issues

** (lxappearance:2019): WARNING **: lxappearance.c:67: Failed to connect to the session message bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

--THEN--

ssh login to WattOS R10 after causing it to hang with sudo lxappearance
+ it is still alive
+ top as pid
PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
3271 tech      20   0    8068   3556   3024 R   0.2  0.2   0:00.12 top
3269 root      20   0    6528   1688   1488 S   0.0  0.1   0:00.00 dbus-launch
3268 root      20   0   23820   8988   8188 S   0.0  0.4   0:00.01 lxappearance
3256 root      20   0    6716   4344   3156 S   0.0  0.2   0:00.04 bash

It does look like it is waiting for dbus

from ssh this works:
sudo reboot

cheers

billwho

  • Full Member
  • ***
  • Posts: 34
    • View Profile
Re: lxappearance freezes as root
« Reply #3 on: September 16, 2016, 11:06:45 PM »
I found a bug report for using sudo with GUI apps:
<https://bugs.launchpad.net/ubuntu/+source/dbus-glib/+bug/71248>

I tried the workaround suggested and it worked:
sudo dbus-launch lxappearance
but it returns an error message.

gksudo dbus-launch lxappearance
works and has NO error message

And I have seen this comment:
The problem is that root has neither an Xscreen session, nor a dbus connection.
Different distros deal with this differently...

Why do you need sudo with lxappearance?
I see no difference than using:
Menu > Preferences > Customize Look and Feel
« Last Edit: September 16, 2016, 11:25:21 PM by billwho »

apprentice

  • Guest
Re: lxappearance freezes as root
« Reply #4 on: September 17, 2016, 03:51:14 AM »
thanks again bilwho

i had just found the dbus-launch trick on the manjaro forum after you pointed me in the right direction
although it took you a lot less time

for me both calls work - no error messages


Different distros deal with this differently...

definately
MX-15 is debian stable xfce
linuxbbq is debian sid openbox
and they both work straight up

which leads to this
Why do you need sudo with lxappearance?
I see no difference than using:
Menu > Preferences > Customize Look and Feel

i make my root adie different so i know thats where i am
and even though it tells me right there, root@ i still make roxterm different
just in case
in root spacefm there´s an ugly red you cant see through
so i change it...

except that now i can get there
1 root lxappearance is not changing the root spacefm looks
2 root lxappearance is changing my user spacefm looks

this ones solved

off i go down the hole

cheers