[FreeNX-kNX] [SOLVED] NXPlayer and FreeNX: Cannot Resume Suspended Session
Nick Couchman
Nick.Couchman at seakr.com
Wed Jul 18 14:55:42 UTC 2012
>>
>
> Hi Nick,
>
> there is no other list for freenx so post the patch here. You modified free
> software so in my opinion there is no problem with legal issues.
>
> Bye Henning
Okay, well, then...here's the patch (inline)...pretty simple.
(Sorry in advance about the long lines and formatting...I didn't know whether or not to try to break it into multiple lines...
-Nick
--- /usr/bin/nxserver.orig 2012-07-17 09:20:49.000000000 -0600
+++ /usr/bin/nxserver 2012-07-17 09:12:13.000000000 -0600
@@ -275,11 +275,11 @@
if [ -z "$4" ]
then
- echo "Display Type Session ID Options Depth Screensize Available Session Name" >> $TMPFILE
- echo "------- ---------------- -------------------------------- -------- ----- -------------- --------- ----------------------" >> $TMPFILE
+ echo "Display Type Session ID Services Dept Screensize Status Session Name Username" >> $TMPFILE
+ echo "------- -------------- -------------------------------- -------- ---- -------------- ------------- ------------------------------------------------------------ --------------------------------" >> $TMPFILE
else
- echo "Display Type Session ID Options Depth Screen Status Session Name" >> $TMPFILE
- echo "------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------" >> $TMPFILE
+ echo "Display Type Session ID Services Dept Screensize Status Session Name Username" >> $TMPFILE
+ echo "------- -------------- -------------------------------- -------- ---- -------------- ------------- ------------------------------------------------------------ --------------------------------" >> $TMPFILE
fi
for i in $NX_SESS_DIR/running/*
do
@@ -330,15 +330,15 @@
if [ "$4" = "vnc" -a "$ENABLE_MIRROR_VIA_VNC" = "1" ] && stringinstring "unix-" "$(getparam type)"
then
available=$(getparam status)
- printf "%-7s %-16s %32s %8s %5s %-14s %-11s %s\n" "$(getparam display)" "vnc-shadowed" "$(getparam sessionId)" "$options" "$depth" "$geom" "$available" "$(getparam sessionName) (Mirrored)" >> $TMPFILE
+ printf "%-7s %-14s %32s %8s %4s %-14s %-13s %-60s %-32s\n" "$(getparam display)" "vnc-shadowed" "$(getparam sessionId)" "$options" "$depth" "$geom" "$available" "$(getparam sessionName) (Mirrored)" "$(getparam userName)" >> $TMPFILE
elif [ "$4" = "shadow" ]
then
available=$(getparam status)
- printf "%-7s %-16s %32s %8s %5s %-14s %-11s %s\n" "$(getparam display)" "$(getparam type)" "$(getparam sessionId)" "$options" "$depth" "$geom" "$available" "$(getparam sessionName) (Shadowed)" >> $TMPFILE
+ printf "%-7s %-14s %32s %8s %4s %-14s %-13s %-60s %-32s\n" "$(getparam display)" "$(getparam type)" "$(getparam sessionId)" "$options" "$depth" "$geom" "$available" "$(getparam sessionName) (Shadowed)" "$(getparam userName)" >> $TMPFILE
else
# only unix-* sessions can be resumed, but other session types can still be terminated
stringinstring "unix-" "$4" || available="N/A"
- printf "%-7s %-16s %32s %8s %5s %-14s %-11s %s\n" "$(getparam display)" "$(getparam type)" "$(getparam sessionId)" "$options" "$depth" "$geom" "$available" "$(getparam sessionName)" >> $TMPFILE
+ printf "%-7s %-14s %32s %8s %4s %-14s %-13s %-60s %-32s\n" "$(getparam display)" "$(getparam type)" "$(getparam sessionId)" "$options" "$depth" "$geom" "$available" "$(getparam sessionName)" "$(getparam userName)" >> $TMPFILE
fi
fi
egrep -q "^userName=$1$" $i && let SESSION_COUNT_USER=$SESSION_COUNT_USER+1
--------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nxserver-4.x-compat.patch
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20120718/68c1dd75/attachment.ksh>
More information about the FreeNX-kNX
mailing list