You are not logged in.

#1 2023-10-21 23:02:11

kolosus
Member
Registered: 2021-08-05
Posts: 26

[SOLVED] Error while running xfce4-taskmanager as root from terminal

Hello, does anyone know how to fix this ?

I didn’t get any errors other than that from the image. Maybe is there a way to set some rules for that settings daemon? Or that dbus part?

Thanks in advance.

Last edited by kolosus (2023-10-22 23:12:05)

Offline

#2 2023-10-22 07:25:57

mpan
Member
Registered: 2012-08-01
Posts: 1,613
Website

Re: [SOLVED] Error while running xfce4-taskmanager as root from terminal

Probably caused by the user (root) not being able to use your session bus.

In general do not do this. You will get hurt. If you really must, see the article on running GUI applications as root. “Really must” does not mean making your mind before you even finished reading this sentence.

Offline

#3 2023-10-22 10:29:31

kolosus
Member
Registered: 2021-08-05
Posts: 26

Re: [SOLVED] Error while running xfce4-taskmanager as root from terminal

I have tried every method from the link you provided, including the policykit method from https://bbs.archlinux.org/viewtopic.php … 28#p999328. I've also modified that policy file from gparted to xfce4-taskmanager, but no luck with any of these methods.

Later on I've found out that  ~/.Xauthority file is missing. And when I tried to generate it with xauth I get this error:


$ xauth generate :0 .
xauth:  error in locking authority file /home/root/.Xauthority

I tried one more time with gksudo, and got this error:


$ gksudo
Error copying '/home/root/.Xauthority' to '/tmp/libgksu-BVZ2Fk': No such file or directory

Am I missing something?

Last edited by kolosus (2023-10-22 10:31:52)

Offline

#4 2023-10-22 13:33:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: [SOLVED] Error while running xfce4-taskmanager as root from terminal

Am I missing something?

mpan wrote:

In general do not do this.

https://en.wikipedia.org/wiki/XY_problem

Wtf are you trying to run that as root itfp?
Don't. Whatever you're trying to do, this is the wrong approach.
Focus on the problem you actually want to solve.

Offline

#5 2023-10-22 16:33:49

kolosus
Member
Registered: 2021-08-05
Posts: 26

Re: [SOLVED] Error while running xfce4-taskmanager as root from terminal

FYI, i was focusing on the task at hand and kept trying to find solutions for that specific problem. I heard that is possible to run GUI apps as root, and yes, I’m well aware of the risks. I wanted to kill the root processes that might be eating up my resources in a friendlier and quicker manner.

P.S. Seth, if you want to help, then help, if not, just please, mind your own business.

Last edited by kolosus (2023-10-22 16:54:37)

Offline

#6 2023-10-22 17:51:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: [SOLVED] Error while running xfce4-taskmanager as root from terminal

I'm actually helping you a lot by telling you to abandon that approach.
eg. top and I guess also htop allow you to kill processes w/ a key.

I'll help you one more

Later on I've found out that  ~/.Xauthority file is missing. And when I tried to generate it with xauth I get this error:

No, it's not.
You're most likely using a different xauthority path, common cause is a DM like SDDM

And now, if you allow, I'll just stop wasting time on you.

Offline

#7 2023-10-22 20:36:43

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,582
Website

Re: [SOLVED] Error while running xfce4-taskmanager as root from terminal

kolosus, you have a history of ignoring or ridiculing those who try to help you. Stop. If you continue to be argumentative and combative, then you will earn yourself a ban.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2023-10-22 23:09:50

kolosus
Member
Registered: 2021-08-05
Posts: 26

Re: [SOLVED] Error while running xfce4-taskmanager as root from terminal

on-topic:
Found the answer. It was a dbus issue all along, and I entered this line on root user from terminal:

eval `dbus-launch --auto-syntax` /usr/bin/*app

It works for almost any GUI app.

off-topic:

WorMzy wrote:

kolosus, you have a history of ignoring or ridiculing those who try to help you. Stop. If you continue to be argumentative and combative, then you will earn yourself a ban.

With all due respect, WorMzy, but that wasn't my intention to ridicule anyone. I believe, in fact, that I was the one who was being ridiculed on this forum, while I was all serious and professional and ON-TOPIC unlike some certain individuals who are spouting OFF-TOPIC nonsense. *sorry for caps*

I'm sorry if I've gone overboard. Besides, nobody is perfect.
For me is water under the bridge. I hope it'll be the same for others.       
I've got no beef with anyone, mind you.
I hope I clarified the situation for anyone who might read this.

Last edited by kolosus (2023-10-23 11:30:50)

Offline

#9 2023-10-24 09:03:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,285

Re: [SOLVED] Error while running xfce4-taskmanager as root from terminal

That's not generally a good idea and will leave a bunch uf dbus sessions lingering. If you think you must do this, run your root GUI application with dbus-run-session instead which will close the dbus session after your application has finished running.

Offline

#10 2023-10-24 22:34:53

kolosus
Member
Registered: 2021-08-05
Posts: 26

Re: [SOLVED] Error while running xfce4-taskmanager as root from terminal

Thanks for the tip. I'll keep that in mind smile

Offline

Board footer

Powered by FluxBB