Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't Open As Root #398

Closed
ghost opened this issue Sep 7, 2016 · 16 comments
Closed

Won't Open As Root #398

ghost opened this issue Sep 7, 2016 · 16 comments

Comments

@ghost
Copy link

ghost commented Sep 7, 2016

Recently, on an Arch Fluxbox system (running lxqt-policykit-agent daemon and setting Qt theme by qt5ct if those matter) pcmanfm-qt (0.10.0) has started to fail opening as root.

Running lxsu pcmanfm-qt from the command line produces

** (process:5449): WARNING **: The directory '~/Templates' doesn't exist, ignoring it

though I've got ~/Templates.

Running lxqt-sudo pcmanfm-qt doesn't produce the above, yet it too fails to open pcmanfm-qt as root.

I can launch, for instance, qtcreator or spacefm as root without any issues.

@tsujan
Copy link
Member

tsujan commented Sep 7, 2016

Does it also happen when you set the authentication mode to sudo in gksu-properties (belonging to libgksu)?

@ghost
Copy link
Author

ghost commented Sep 7, 2016

I don't have libgksu and such.

@tsujan
Copy link
Member

tsujan commented Sep 7, 2016

I don't have libgksu and such.

Ignore it! Now I'm using my laptop with the latest LXQt and see the same problem. It's a regression because it doesn't exist with an older LXQt version on my desktop computer.

@tsujan
Copy link
Member

tsujan commented Sep 7, 2016

The change that has caused this regression should be made in the last three months. Does anybody have a clue?

@ghost
Copy link
Author

ghost commented Sep 7, 2016

It has appeared here at most a month ago, or more likely 1-2 weeks ago.

@tsujan
Copy link
Member

tsujan commented Sep 7, 2016

It has appeared here at most a month ago, or more likely 1-2 weeks ago.

Thanks! That could narrow down the search.

@tsujan
Copy link
Member

tsujan commented Sep 8, 2016

This issue isn't in pcmanfm-qt or libfm-qt. On an LXQt from 3 months ago, I upgraded only libfm-qt and pcmanfm-qt to their latest github versions and pcmanfm-qt opened as root correctly.

Since the rest of the system is up-to-date here, another LXQt component may have caused this issue but I can't see how. @palinek, @paulolieuthier, @luis-pereira, any idea?

@tsujan
Copy link
Member

tsujan commented Sep 8, 2016

Never mind! Found the cause: it was Arch itself!

@AcarBurak, please see if reinstallation of dbus fixes the problem! It did on both of my Manajro systems. (The above-mentioned experiment was done under Debian.)

@palinek
Copy link
Contributor

palinek commented Sep 8, 2016

It may be somehow connected to some preserved environment.... back then, I needed to do following "hack" -> lxqt/lxqt-sudo@dd8903d for pcmanfm-qt

@tsujan
Copy link
Member

tsujan commented Sep 8, 2016

@palinek, thanks for your reply!
It happened with sudo and kdesu too. When I saw that konsole couldn't be opened as root either, I became suspicious of dbus. There has been a change in Arch's dbus that can cause such issues.

@agaida
Copy link
Member

agaida commented Sep 8, 2016

hmm - i don't have these problems with the latest git, so i suspect a problem outside of the code.

@tsujan
Copy link
Member

tsujan commented Sep 8, 2016

hmm - i don't have these problems with the latest git, so i suspect a problem outside of the code.

I agree.

@tsujan tsujan closed this as completed Sep 8, 2016
@ghost
Copy link
Author

ghost commented Sep 9, 2016

Reinstalling dbus didn't solve the issue, but launching it by

lxsu dbus-launch pcmanfm-qt

solves.

@stefonarch
Copy link
Member

Here on arch pcmanfm-qt is the very only application which does not start with lxsudo (or kdesu), other qt filemanager like qtfm do. Sure this is not in the code?

@tsujan
Copy link
Member

tsujan commented Jan 6, 2017

Sure this is not in the code?

On Manjaro (whose packages are mostly those of Arch), I have no problem. Please consider the fact that some apps -- like pcmanfm-qt -- need dbus support to run as root!

@agaida agaida added this to test in Issues Aug 11, 2018
@Myrddin-Wyllt
Copy link

dbus-x11 from the AUR is the simplest solution in Arch distros, but It's a bit behind compared to Arch's dbus (one could edit the pkgbuild during install and modernize it fairly easily). After installing dbus-x11 on Manjaro, I didn't have the issue (on Manjaro, dbus-x11 is a package with the latest version).
I believe the relevant compilation flag is --enable-x11-autolaunch. Not sure on that though.

@ghost is correct that dbus-launch solves the issue without having to alter dbus installations.

Using an alias including dbus-launch for specific applications could work, but is a bit tedious.

@agaida agaida added this to Ancient in Issues Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Issues
  
Translations and L10N
Issues
  
Ancient
Development

No branches or pull requests

5 participants