Bug 391965 - Impossible to edit software sources under Wayland
Summary: Impossible to edit software sources under Wayland
Status: RESOLVED FIXED
Alias: None
Product: muon
Classification: Applications
Component: muon (show other bugs)
Version: 5.8.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-17 15:14 UTC by Patrick Silva
Modified: 2021-05-15 15:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2018-03-17 15:14:18 UTC
I use muon 5.7 on neon dev unstable.
Under Wayland, when I open settings > Configure software sources I type my password, window to edit repositories settings is not opened and muon only updates the repositories index.
Under X11 I can edit software sources.
Comment 1 Carlo Vanini 2018-10-26 15:51:14 UTC
`software-properties-kde` is an external application that Muon starts to let you configure software sources. This is being replaced by `software-properties-qt` as of Kubuntu 18.10, which is a more recent qt-only version and may work better in Wayland.
You can try to start it manually from a shell. Does the problem still exist?
Comment 2 Patrick Silva 2018-10-26 16:42:05 UTC
Hi
Run software-properties-qt from terminal requires administrative rights.
However it's impossible to run GUI with administrative rights on Wayland.
Comment 3 Carlo Vanini 2018-10-26 17:36:06 UTC
Now, that might be a problem! Muon is using kdesu to gain rights.
What happens if you run `/usr/lib/kde4/libexec/kdesu software-properties-qt` from terminal?
What with `pkexec software-properties-qt` (it should fail, though).

If you are unable to start it manually it might be worth to report upstream at https://bugs.launchpad.net/ubuntu/+source/software-properties
Comment 4 Patrick Silva 2018-10-26 17:58:25 UTC
`/usr/lib/kde4/libexec/kdesu software-properties-qt`
no such file or directory

'pkexec software-properties-qt' asks for password and I get this error:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
Comment 5 Carlo Vanini 2018-11-23 20:49:42 UTC
The bug is now reported against software-properties-qt
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1804887

There is a proposed (partial) solution attached.

This bug report remains open because, if/when the change is applied to s-p-qt, we should stop using kdesu.
Comment 6 Patrick Silva 2019-03-02 16:36:03 UTC
This problem persists.

Operating System: KDE neon Developer Edition
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.0
Comment 7 Eugene 2020-05-11 01:07:16 UTC
Still relevant:

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.8
Comment 8 Patrick Silva 2021-05-15 15:34:00 UTC
Currently "Configure software sources" window runs on Xwayland
(I see xorg icon in task manager) and now I can edit software sources on Wayland
session. :)

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Graphics Platform: Wayland