respz

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • respz
    Participant

    Sorry for the delayed response. I found out what is happening.

    I have 2 scripts, namely: afterlogin.sh and afterlogout.sh.

    afterlogin contains:

    #!/bin/bash

    gsettings set org.mate.background picture-filename ”

    The problem is that it is run under user nx instead of the logged user. So it cannot get the DBUS_SESSION_BUS_ADDRESS variable from the current gnome session to change the background.

    Is there a way to run scripts as the current logged user, instead of user nx?

    in reply to: Run script after connection and after disconnection #38471
    respz
    Participant

    I did manage to run the scripts I wanted, at least I could see them in the logs. I am running a gsettings command to remove the wallpaper on connection. When I run the script from the command line, it works, but it doesn’t when it is run from the nomachine’s UserScriptAfterSessionStart. I tryd running on the node.cfg and also server.cfg.

Viewing 2 posts - 1 through 2 (of 2 total)