Bug 494636 - plasmashell --version may not work over ssh
Summary: plasmashell --version may not work over ssh
Status: RESOLVED DUPLICATE of bug 401231
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.1.5
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-13 07:03 UTC by Ellie
Modified: 2024-11-05 22:12 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ellie 2024-10-13 07:03:53 UTC
SUMMARY

Running plasmashell --version seems to depend on graphics initialization working, which can be an issue when running that command over SSH:

$ plasmashell --version
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland, eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb.

Aborted
$

It would be nice if --version bypassed graphics initialization and if it just printed the version even with no graphics available. The same problem seems to exist for kwrite --version and konsole --version and systemsettings --version.

STEPS TO REPRODUCE

1. Run plasmashell --version over SSH

OBSERVED RESULT

Depending on your SSH setup, the command may not work and complain about lacking Wayland access.

EXPECTED RESULT

The plasma version is printed even over SSH.

SOFTWARE/OS VERSIONS

Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Comment 1 TraceyC 2024-10-28 22:46:07 UTC
I can confirm this behavior with plasmashell on git-master
It does seem like --version should just spit out the version without needing the graphical environment
Comment 2 Nate Graham 2024-11-05 22:12:11 UTC

*** This bug has been marked as a duplicate of bug 401231 ***