-
Notifications
You must be signed in to change notification settings - Fork 853
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
$XDG_RUNTIME_DIR is created with invalid permissions (755, should be 700) #10896
Comments
@velle: Do you have systemd enabled ? If so systemd actually creates this folder. You can validate that by running:
|
Yes, I have systemd enabled. Here is the output:
Before posting this issue, I wrote the systemd-devel mailing list: https://lists.freedesktop.org/archives/systemd-devel/2023-November/049679.html. If I understand correctly, they believe that something in WSL creates those folders before systemd tries to, and therefore systemd does not touch those folders. From https://lists.freedesktop.org/archives/systemd-devel/2023-November/049691.html:
|
I have the same issue (trying to run imhex):
|
The impact of this cannot be under-estimated: With systemd enabled, none of the tools mentioned above will start. I.e. anything using the Qt UI toolkit will simply fail to start. Symptoms are a Real Crash (imhex, see above, reproduced), or anything from the KDE ecosystem, such as konsole, filelight, kate, all of which start with a black/blank/transparent screen. And it's always
|
@shoffmeister yes exactly, the impact is way more than it seems, did you figure out a way to fix this? i've been breaking my head over it the past whole day |
I have not looked into this in detail, but simply redefining XDG_RUNTIME_DIR to some other location, with the correct privileges, should suffice. Following https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html, something as simple as
could work. |
me too. |
Windows Version
Microsoft Windows [Version 10.0.19045.3693]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
I created a container from the default WSL image of Ubuntu 22.04, and logged in.
Check the file permissions for $XDG_RUNTIME_DIR:
Use Qt's QStandardPaths
Run a piece of software or a script that depends on Qt's QStandardPath, e.g. this minimal Python script:
Expected Behavior
Expected file permissions:
According to the XDG Base Directory Specification it should always have permissions 700, ie:
Expected output:
Expected Qt behavior
No warnings or errors.
Actual Behavior
Actual file permissions:
Actual Qt behavior
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: