-
I'm running a docker container with xfc (linuxserver rdesktop image). and I have created a script that will open a session using usually i set DISPLAY=10 and works, but on the latest update of the image sometimes it's using 11 or 12. so i can not pre-define it. is it possible to capture which one is using? thanks in advance for your help and great software
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
on #1898 (comment) @matt335672 implied that might be possible (?) |
Beta Was this translation helpful? Give feedback.
-
thanks for pointing me on the right direction @matt335672 if i do echo "$(</run/secrets/password)" | xrdp-sesrun -F0 -s 127.0.0.1 testuser
[20240423-10:19:47] [WARN ] Using deprecated option '-s'
ok data=1 display=:10 GUID=98063e9769df1308631010e85f794230 I get the display in the otput, among warnings and other information this is giving me the display echo "$(</run/secrets/password)" | xrdp-sesrun -F0 -s 127.0.0.1 testuser| grep -e '^ok' | cut -d ' ' -f 3 | cut -d '=' -f 2
:10 if there is a better way please let me know. thanks in advance for your help |
Beta Was this translation helpful? Give feedback.
This is fantastic @matt335672 thanks so much for your help.