Bug 387312 - KAuth always returns DBus backend error
Summary: KAuth always returns DBus backend error
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kauth
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.40.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-26 06:42 UTC by Jasem Mutlaq
Modified: 2020-09-05 21:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of error (99.03 KB, image/png)
2017-11-26 06:42 UTC, Jasem Mutlaq
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jasem Mutlaq 2017-11-26 06:42:47 UTC
Created attachment 109062 [details]
Screenshot of error

Using KDE Neon with latest KF5:

Qt: 5.9.1
KDE Frameworks: 5.40.0

In KStars, we use KAuth to download files to /usr/share/astrometry. After download is complete, it presents a root password dialog and after password is submitted, it displays the attached error.

There is already a .service file in the correction location.

/usr/share/dbus-1/system-services/org.kde.kf5auth.kstars.service

[D-BUS Service]
Name=org.kde.kf5auth.kstars
Exec=/usr/lib/x86_64-linux-gnu/libexec/kauth/kauth_kstars_helper
User=root

dbus-daemon is already running. Also dbus-launch
Comment 1 Harald Sitter 2020-09-05 16:56:12 UTC
Is this still a problem? Sounds a bit like a setup problem, for polkit to work correctly there need to be 3 different files in the correct paths (the dbus policy to allow claiming the service name, the dbus service for dbus-invocation, the polkit actions to setup the actual auth). The file you mention is only the second bit and will not work without the first bit.
Comment 2 Jasem Mutlaq 2020-09-05 21:51:13 UTC
We stopped using it, so I'll close this.