You are not logged in.

#1 2016-08-21 15:34:41

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Cannot run root apps via kdesu

Using testing repo and noticed recently that I can'y use kdesu to launch root apps (usually I need this for Dolphin or System Settings).

I've found that it works if I write dbus-launch before the app name so 'kdesu dbus-launch dolphin'.

This is happening on 2 systems for me so I would just like to check that I'm not the only one and if there is a solution other than the dbus-launch workaround.

Using testing I guess this might be connected to newer versions of dbus, systemd or kde frameworks and apps themselves...

Cheers,

P

Last edited by pepedopolous (2016-08-22 09:35:30)

Offline

#2 2016-08-21 15:49:14

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 501

Re: Cannot run root apps via kdesu

Kdesu isn't in Testing atm. Root gui apps work for me. What is outputted when you attempt to run thru the terminal?

Offline

#3 2016-08-21 15:59:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,177

Re: Cannot run root apps via kdesu

Fully up to date system with testing enabled, no Window Manager (start Xorg with startx), i3-wm.
Works okay here.  How are you starting X?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2016-08-21 16:12:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,052

Re: Cannot run root apps via kdesu

Do you have a session dbus running for your user/session?

Offline

#5 2016-08-21 16:13:41

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,250
Website

Re: Cannot run root apps via kdesu

Have you tried:

pkexec foobar

Velocitas Eradico

Offline

#6 2016-08-21 16:30:11

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

It doesn't work from the terminal either (unless I also include dbus-launch).

pkexec dolphin doesn't work.


journalctl -b -p err
pepe-arch dolphin[4036]: "Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)"

Offline

#7 2016-08-21 16:50:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,177

Re: Cannot run root apps via kdesu

ewaller wrote:

How are you starting X?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2016-08-21 17:07:30

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

ewaller wrote:
ewaller wrote:

How are you starting X?

SDDM, autologin.


Cheers,

P

Offline

#9 2016-08-21 17:10:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,052

Re: Cannot run root apps via kdesu

pepedopolous wrote:

"Session bus not found"

So again, we're back to no session dbus. You need to figure out why your systemd session is broken.

Offline

#10 2016-08-21 17:19:45

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

Maybe something here?

locate *pacnew
/etc/locale.gen.pacnew
/etc/makepkg.conf.pacnew
/etc/profile.pacnew
/etc/NetworkManager/NetworkManager.conf.pacnew
/etc/gdm/custom.conf.pacnew
/etc/pacman.d/mirrorlist.pacnew
/etc/pulse/default.pa.pacnew
/etc/systemd/journald.conf.pacnew
/etc/systemd/system.conf.pacnew
/etc/systemd/user.conf.pacnew

Offline

#11 2016-08-21 20:44:27

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

Well in the end I have solved it temporarily by downgrading dbus from 1.10.10-3 to 1.8.8-1.

Offline

#12 2016-08-21 21:39:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,052

Re: Cannot run root apps via kdesu

That's not a solution.

How are you starting sddm? Does `systemctl status` list a unit for you user session, with all of your user processes under it?

Offline

#13 2016-08-21 21:56:01

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

No it's not a solution. Downgrading dbus meant sddm didn't start on reboot and more trouble due to misbehaving dbus. Sorted now but back to square 1.

systemctl status lists a user.slice and user@1000.service

http://pastebin.com/GG1TFQGp


● sddm.service - Simple Desktop Display Manager
   Loaded: loaded (/usr/lib/systemd/system/sddm.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2016-08-21 23:43:54 CEST; 10min ago
     Docs: man:sddm(1)
           man:sddm.conf(5)
 Main PID: 579 (sddm)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/sddm.service
           ├─579 /usr/bin/sddm
           └─589 /usr/lib/xorg-server/Xorg -nolisten tcp -auth /var/run/sddm/{87c856b3-5eec-49c3-85b2-9d0a161923ef} -background none -n

Aug 21 23:43:55 nuc sddm[579]: Display server started.
Aug 21 23:43:55 nuc sddm[579]: Reading from "/usr/share/xsessions/plasma.desktop"
Aug 21 23:43:55 nuc sddm[579]: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startkde"
Aug 21 23:43:55 nuc sddm[579]: Adding cookie to "/var/run/sddm/{87c856b3-5eec-49c3-85b2-9d0a161923ef}"
Aug 21 23:43:55 nuc sddm-helper[632]: [PAM] Starting...
Aug 21 23:43:55 nuc sddm-helper[632]: [PAM] Authenticating...
Aug 21 23:43:55 nuc sddm-helper[632]: [PAM] returning.
Aug 21 23:43:55 nuc sddm[579]: Authenticated successfully
Aug 21 23:43:55 nuc sddm-helper[632]: pam_unix(sddm-autologin:session): session opened for user pepe by (uid=0)
Aug 21 23:43:55 nuc sddm[579]: Session started
 

Offline

#14 2016-08-21 23:11:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,052

Re: Cannot run root apps via kdesu

That systemctl status output does show a running session dbus instance. It *should* be working.

What does loginctl show-session c2 tell you?

Offline

#15 2016-08-22 09:16:42

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

Rebooted. There is no c2 session now, only c1. I think there was this c2 session as I had launched sddm from a rescue shell after reinstalling dbus.

kdesu still doesn't work. kdesud is listed as a process under the session-c1.scope.

Offline

#16 2016-08-22 12:20:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,052

Re: Cannot run root apps via kdesu

Using sddm, there generally should be a c2. What's the systemctl status output look like now?

Offline

#17 2016-08-22 12:53:29

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

Fresh boot, systemctl status: http://pastebin.com/9xdd7x2V only c1 that I can see...


On my laptop with the same problem, right now there is a c1 and c3 scope...

Offline

#18 2016-08-22 13:00:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,052

Re: Cannot run root apps via kdesu

So session dbus is still there, and kde is using it, so it should be fine. Again, same command as above, just substituting c2 for c1.

Offline

#19 2016-08-22 13:22:39

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

[pepe@nuc ~]$ loginctl show-session c1
Id=c1
User=1000
Name=pepe
Timestamp=Mon 2016-08-22 14:47:42 CEST
TimestampMonotonic=5329724
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=sddm-autologin
Desktop=KDE
Scope=session-c1.scope
Leader=433
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0

Offline

#20 2016-08-22 13:34:34

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: Cannot run root apps via kdesu

pepedopolous wrote:
ewaller wrote:
ewaller wrote:

How are you starting X?

SDDM, autologin.

what is the result if you disable "autologin" in sddm, and type manually your name and password in sddm window ?

you can try also to start kde manually without sddm, ( for example by typing "startx" in the console ),

the idea is to see if the culprit could be sddm ( bad file configuration, bug with the autologin mode )

check also if your pacman mirror is really up-to-date, if you have doubt : change the pacman mirror and redo a "pacman -Syy, and pacman -Syu"

Last edited by Potomac (2016-08-22 13:36:55)

Offline

#21 2016-08-22 14:08:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,052

Re: Cannot run root apps via kdesu

huh, well that's a bust. I don't know why some programs can't connect.

Offline

#22 2016-08-22 14:20:41

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

So it doesn't make a difference if I use sddm autologin or not. I also tried gdm instead of sddm but still the same problem.

I haven't tried startx yet as I don't have an xinitrc right now.

Offline

#23 2016-08-22 14:27:21

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: Cannot run root apps via kdesu

don't forget also to check the status of your pacman mirror, if all packages are really up-to-date :

https://www.archlinux.org/mirrors/status/

use only one mirror, some users have set multiple mirror sites in their /etc/pacman.d/mirrorlist, I think it's not a good practice because it can lead to confusion and weird bugs,


you said you use testing repos, does the bug occur with stable repos on your PC ?

Last edited by Potomac (2016-08-22 14:40:17)

Offline

#24 2016-08-22 14:42:30

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot run root apps via kdesu

Well the packages sddm, kdesu, polkit are from [extra] as there aren't any newer versions in testing at the moment. dbus is from testing. If I downgrade it, I get more problems with loginctl, sddm, a barely usable system.

P

Offline

#25 2016-08-22 16:20:18

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: Cannot run root apps via kdesu

you can try to go back to a full "stable" repo ( no testing ) and see if the bug is still here :

Disabling testing repositories

If you enabled testing repositories, but later on decided to disable them, you should:

    - Remove (comment out) them from /etc/pacman.conf
    - Perform a # pacman -Syyuu to "rollback" your updates from these repositories.

https://wiki.archlinux.org/index.php/Of … es#testing

Warning: Be careful when enabling the testing repositories. Your system may break after performing an update. Only experienced users who know how to deal with potential system breakage should use it.

try also to login with a different user account, in order to see if a different "home" ( different configuration ) can help

Last edited by Potomac (2016-08-22 16:48:55)

Offline

Board footer

Powered by FluxBB