Connect always in fullscreen

Forum / NoMachine for Linux / Connect always in fullscreen

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35560
    NSK
    Participant

    Hello,

    Is it possible to configure a connection in way that it always opens in “fullscreen”, no matter how it was closed last time?

    Thanks.

    (Linux running NoMachine 7.6.2)

    #35651
    Tor
    Participant

    Hi. Client stores the last window state and restores it when starting, and currently there is no way to avoid that.
    You could do what you need with a tool like ‘wmctrl’ by creating a script to start the client, or by editing the script /usr/NX/bin/nxplayer in a way similar to this:

    exec "$NX_SYSTEM/bin/nxplayer.bin" "$@" &
    sleep 1
    wmctrl -x -r nxplayer.bin -b toggle,fullscreen
    wmctrl -x -R nxplayer.bin

    We’ll evaluate adding a command line option to always start in fullscreen mode by ignoring the last saved window state.

    #35675
    NSK
    Participant

    Thank you!

    The edit worked. I just had to increase the sleep time to 10, otherwise the link opens in fullscreen and revert to windowed when the connection is made (perhaps this can be adjusted with the wmctrl but I am not familiar with its options).

    This feature in the command line will be very usefull.

     

    #35682
    Tor
    Participant

    (perhaps this can be adjusted with the wmctrl but I am not familiar with its options)

    Apologies, I did a bad assumption! You can replace the action “toggle” with “add”, so it will only enable fullscreen and it won’t remove it when its already set.

    #35708
    NSK
    Participant

    Thank you, it worked!

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

This topic was marked as solved, you can't post.