We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2020-03-30 16:23:07 +0200 |
Issue when attempting to launch, for example, a file manager app from terminal as root. Sometimes works fine, sometimes I get: error: XDG_RUNTIME_DIR not set in the environment. [C] unknown:0 - Failed to create display (No such f ile or directory) Sometimes works fine as with devel-su, sometimes with su, sometimes with sudo. My most consistent method to get it to work so far is to open a terminal app, attempt it, get an error, then open a different terminal app, attempt it, and it works. I have searched the error message, and found advice about exporting display, etc, but seems obviously not a system config issue, since it works sometimes. What is happening, and what could I do to avoid the error? Thanks
2 | No.2 Revision |
Issue when attempting to launch, for example, a file manager app from terminal as root. root, (always launches fine as standard user). Sometimes works fine, sometimes I get: error:
XDG_RUNTIME_DIR not set in the environment.
[C] unknown:0 - Failed to create display (No such f
ile or directory)
Sometimes works fine as with devel-su, sometimes with su, sometimes with sudo. My most consistent method to get it to work so far is to open a terminal app, attempt it, get an error, then open a different terminal app, attempt it, and it works.
I have searched the error message, and found advice about exporting display, etc, but seems obviously not a system config issue, since it works sometimes.
What is happening, and what could I do to avoid the error?
Thanks