FS#51453 - [dbus] Can't run applications with sudo

Attached to Project: Arch Linux
Opened by Maksim (DragonX256) - Thursday, 20 October 2016, 04:29 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 20 October 2016, 04:46 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Starting from dbus version 1.10.10 I can't run GTK applications, like mousepad, with sudo. Application can't change it setting, and console spamming with one warning message.

dbus latest version on this moment - 1.10.12-1 (I'm on testing, but package with bug is in core repo).

Steps to reproduce:
1. Run 'sudo mousepad' or 'sudo gedit' or etc. in terminal emulator.
2. Try to change any settings and preferences.
3. Console will start spamming with message like:

(mousepad:5866): dconf-WARNING **: failed to commit changes to dconf: Error spawning command line 'dbus-launch --autolaunch=de61eefaab024df39c960ff6b4067f9b --binary-syntax --close-stderr': Child process exited with code 1

I determined that the package must be configured through ./configure with the option --enable-x11-autolaunch, or mousepad to gedit can start and run properly through sudo.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 20 October 2016, 04:46 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#51026 
Comment by Maksim (DragonX256) - Thursday, 20 October 2016, 04:31 GMT
If I will type this command in terminal, it says:

1 dx37@Archey ~ % dbus-launch --autolaunch=de61eefaab024df39c960ff6b4067f9b --binary-syntax --close-stderr
Autolaunch requested, but X11 support not compiled in.
Cannot continue.
Comment by Maksim (DragonX256) - Thursday, 20 October 2016, 04:33 GMT
Fix this:
"I determined that the package must be configured through ./configure with the option --enable-x11-autolaunch, or mousepad to gedit can start and run properly through sudo."
By this:
"I determined that the package must be configured through ./configure with the option --enable-x11-autolaunch, and mousepad or gedit can start and work properly through sudo."

Loading...