From d9e860a8ae474b8ed569dfb6faf7f2dcc9ad0604 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 20 Feb 2024 11:12:12 +0100 Subject: [PATCH] suggestion how to fix: wrong permissions on runtime directory --- .../Troubleshooting.md | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/doc/md/Installation_Instructions/Troubleshooting.md b/doc/md/Installation_Instructions/Troubleshooting.md index 7dab8ca03..733b90e8c 100644 --- a/doc/md/Installation_Instructions/Troubleshooting.md +++ b/doc/md/Installation_Instructions/Troubleshooting.md @@ -27,7 +27,8 @@ Always use the latest repository commits from *master* branch. There are always - [bzlib.h: No such file or directory](#bzlibh-no-such-file-or-directory) - [target attribute is not supported on this machine](#target-attribute-is-not-supported-on-this-machine) - [Qt Session management error](#qt-session-management-error) - - [found architecture x86_64 required architecture arm64 error](#found-architecture-x86_64-required-architecture-arm64-error) + - [found architecture 'x86\_64' required architecture 'arm64' error](#found-architecture-x86_64-required-architecture-arm64-error) + - [wrong permissions on runtime directory /run/user/1000](#wrong-permissions-on-runtime-directory-runuser1000) ## `pm3` or `pm3-flash*` doesn't see my Proxmark @@ -333,3 +334,30 @@ Then run this again ``` make clean && make -j ``` + +## wrong permissions on runtime directory /run/user/1000 + +If you get the message + +``` +QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700 +``` + +when running + +``` +tools/pm3_tests.sh --long +``` + +Solution: + +Try set the XDG_RUNTIME_DIR environment variable. +ref: https://stackoverflow.com/questions/60458596/standardpaths-wrong-ownership-on-runtime-directory-run-user-1000-1000-instead + +``` +export XDG_RUNTIME_DIR=/run/user/1000 + +or + +export XDG_RUNTIME_DIR=/var/run/user/1000 +``` \ No newline at end of file