Il 11/01/2024 04:57, Max Nikulin ha scritto:
On 10/01/2024 04:43, Valerio Vanni wrote:
Il 07/01/2024 06:44, Max Nikulin ha scritto:

setpriv --reuid 1000 --regid 1000 --init-groups --reset-env -- \
    env XDG_RUNTIME_DIR="/run/user/1000" \
    systemd-run --user --slice=app.slice -- \
    xterm

setpriv --reuid="$kafuid" --regid="$kafgid" --init-groups --reset-env \
       env XDG_RUNTIME_DIR=/run/user/"$kafuid" >  $kafdis XDG_CURRENT_DESKTOP=KDE \
---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Do you really need it?

It's all left there from when I used setpriv to launch directly kaffeine, before I decided to use systemd-run. I'll try to remove it, now I checked and they are all listed in systemd user environment.

I find it not really safe to use $kafdis without quotes.

Yes, neither I liked to catch that string. But I considered it a temporary solution.

Reply via email to