From unknown Sun Apr 12 22:52:54 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#349: [X2Go-Dev] Bug#349: Make shadow sessions work with --hide option
Reply-To: Marco =?UTF-8?Q?Andr=C3=A9?= Dinis <marcoandredinis@gmail.com>, 349@bugs.x2go.org
Resent-From: Marco =?UTF-8?Q?Andr=C3=A9?= Dinis <marcoandredinis@gmail.com>
Resent-To: x2go-dev@lists.berlios.de
Resent-CC: X2Go Developers <x2go-dev@lists.berlios.de>
X-Loop: owner@bugs.x2go.org
Resent-Date: Mon, 09 Dec 2013 11:18:02 +0000
Resent-Message-ID: <handler.349.B349.1386587030341@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 349
X-X2Go-PR-Package: x2goclient
X-X2Go-PR-Keywords: moreinfo
Received: via spool by 349-submit@bugs.x2go.org id=B349.1386587030341
          (code B ref 349); Mon, 09 Dec 2013 11:18:02 +0000
Received: (at 349) by bugs.x2go.org; 9 Dec 2013 11:03:50 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham
	version=3.3.2
Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173])
	by ymir (Postfix) with ESMTPS id 7CF1D5DA7B
	for <349@bugs.x2go.org>; Mon,  9 Dec 2013 12:03:49 +0100 (CET)
Received: by mail-we0-f173.google.com with SMTP id u57so3240739wes.18
        for <349@bugs.x2go.org>; Mon, 09 Dec 2013 03:03:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :cc:content-type;
        bh=2W1peW57MhS2OhNuF9ZamA0R0JXWfyRhJlnpIwXZE+Q=;
        b=r9yRHUi3GNJbLZ5Y5AZ+HdJJLgBNibm9ppowCbZl7OZGsZvHV5Q+pSDUAXTAor4Lsc
         pjyrCAQgO7CTyPw/rowK1TBL4bwIdA2nYHYO0QjL1g+mv6aeP8DyU4w4lsMnQKAfRqy3
         lLAm5rSCPIDjlO/bsl95IsM9TSzCGD3bN8CD1QgxbHbo5gcdr94BhJ9WJlxKqbXkPN4N
         e3E0z+5ti1qkiyYkzAGEWXiXgFW6mdACTHu4dJSSiE1nzUFC0qYiA6KbVOmNVzxWysvt
         k6cho57JjIQm3jUoY2c6FMCp89gABtWZNLNpLAwUclzDXdWLINQRKfUu1Ety2D6BKtpo
         CPjg==
X-Received: by 10.180.96.106 with SMTP id dr10mr13340189wib.27.1386587029163;
 Mon, 09 Dec 2013 03:03:49 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.58.71 with HTTP; Mon, 9 Dec 2013 03:03:34 -0800 (PST)
In-Reply-To: <CAJxG8spv3bF9v3f_F1U3mAZuzmjeuxmNyUrEqPDBaxhspyHEkQ@mail.gmail.com>
References: <14138471.B8Tpv8tqIx@mcdtux> <20131127104626.Horde.w5hvLxXG3VoCZDC6svrcQA2@mail.das-netzwerkteam.de>
 <CAJxG8spv3bF9v3f_F1U3mAZuzmjeuxmNyUrEqPDBaxhspyHEkQ@mail.gmail.com>
From: Marco =?UTF-8?Q?Andr=C3=A9?= Dinis <marcoandredinis@gmail.com>
Date: Mon, 9 Dec 2013 11:03:34 +0000
Message-ID: <CAJxG8soAwOMnj0bVx7VWMuxcH0ZoaDX+7f2-Fim77kADeNe+=g@mail.gmail.com>
To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Cc: 349@bugs.x2go.org
Content-Type: multipart/alternative; boundary=f46d0418270252d6b904ed17f304

--f46d0418270252d6b904ed17f304
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Any news on implementing this?


On Thu, Nov 28, 2013 at 10:16 AM, Marco Andr=C3=A9 Dinis <
marcoandredinis@gmail.com> wrote:

> Hi
>
> I'm sending the patch.
>
> However this is not the final fix. There are 2 modes: full access and
> only view. Right now it starts full access.
> That decision could be made using the session info. For example,
> create the command SHADOWFULL
>
> On Wed, Nov 27, 2013 at 10:46 AM, Mike Gabriel
> <mike.gabriel@das-netzwerkteam.de> wrote:
> > Control: retitle -1 Make shadow sessions work with --hide option
> > Control: tag -1 moreinfo
> > Control: clone -1 -2
> > Control: reassign -2 x2godesktopsharing
> > Control: retitle -2 Add --no-icon cmdline option to x2godesktopsharing
> > Control: severity -2 wishlist
> >
> > Hi Marco,
> >
> > with this mail I split up your report into to separate bug reports. One
> for
> > x2goclient, one for x2godesktopsharing...
> >
> > On  Di 26 Nov 2013 17:01:41 CET, marcoandredinis wrote:
> >
> >> I'm developing a program that will use X2Go software. I dont want
> >> users to notice they are using any other program besides my own.
> >>
> >> I have two problems right now:
> >>
> >> A) X2GoClient
> >> Using SHADOW mode with "--hide" does not work. The interface waits for
> >> selection of Display (usually ":0") and, since there's no input from
> >> user (there's no window) the program does not show anything.
> >> There are possible ways of fixing/improving this situation:
> >> -allow user to set the default display on sessions' file
> >> -create one flag and run program like these: "x2goclient --hide
> >> --sessionid=3Dxxx --select-first-display"
> >>
> >> Anyway, i modified the code of x2goclient/onmainwindow.cpp and added
> >> these lines:
> >> l4348:..if( shadowSession )
> >> l4349:....slotShadowSess();
> >> Compiled the program, and now i can run "./x2goclient --hide
> >> --sessionid=3Dxxx" and the window will show up.
> >> This is NOT a fix, this is a nasty workaround. It wontn show the list
> >> even when the "hide" flag is not present.
> >
> >
> > Please provide a patch for what you did.
> >
> > Please improve your patch so it is not a workaround anymore. I guess, I
> > agree with you, that the X2Go Client window should pop up, if there are
> more
> > than one sharable desktops to select from. If there is only one sharabl=
e
> > desktop, this should be auto-selected. Can you code that into X2Go
> Client,
> > please?
> >
> >> B) X2GoDesktopSharing
> >> Just the icon on SystemTray. If we could pass a flag like "--no-icon"
> >> would be great
> >
> >
> > This part will be handled in a separate bug. I will reply to this once
> the
> > separate bug is created in X2Go BTS.
> >
> >> I could do these simple changes on my own, but i rather see this
> >> changes on the official code.
> >
> >
> > Let's try to get your needs into upstream code...
> >
> > Mike
> >
> > --
> >
> > DAS-NETZWERKTEAM
> > mike gabriel, herweg 7, 24357 fleckeby
> > fon: +49 (1520) 1976 148
> >
> > GnuPG Key ID 0x25771B31
> > mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
> >
> > freeBusy:
> >
> https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de=
.xfb
>

--f46d0418270252d6b904ed17f304
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Any news on implementing this?</div><div class=3D"gmail_ex=
tra"><br><br><div class=3D"gmail_quote">On Thu, Nov 28, 2013 at 10:16 AM, M=
arco Andr=C3=A9 Dinis <span dir=3D"ltr">&lt;<a href=3D"mailto:marcoandredin=
is@gmail.com" target=3D"_blank">marcoandredinis@gmail.com</a>&gt;</span> wr=
ote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi<br>
<br>
I&#39;m sending the patch.<br>
<br>
However this is not the final fix. There are 2 modes: full access and<br>
only view. Right now it starts full access.<br>
That decision could be made using the session info. For example,<br>
create the command SHADOWFULL<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
On Wed, Nov 27, 2013 at 10:46 AM, Mike Gabriel<br>
&lt;<a href=3D"mailto:mike.gabriel@das-netzwerkteam.de">mike.gabriel@das-ne=
tzwerkteam.de</a>&gt; wrote:<br>
&gt; Control: retitle -1 Make shadow sessions work with --hide option<br>
&gt; Control: tag -1 moreinfo<br>
&gt; Control: clone -1 -2<br>
&gt; Control: reassign -2 x2godesktopsharing<br>
&gt; Control: retitle -2 Add --no-icon cmdline option to x2godesktopsharing=
<br>
&gt; Control: severity -2 wishlist<br>
&gt;<br>
&gt; Hi Marco,<br>
&gt;<br>
&gt; with this mail I split up your report into to separate bug reports. On=
e for<br>
&gt; x2goclient, one for x2godesktopsharing...<br>
&gt;<br>
&gt; On =C2=A0Di 26 Nov 2013 17:01:41 CET, marcoandredinis wrote:<br>
&gt;<br>
&gt;&gt; I&#39;m developing a program that will use X2Go software. I dont w=
ant<br>
&gt;&gt; users to notice they are using any other program besides my own.<b=
r>
&gt;&gt;<br>
&gt;&gt; I have two problems right now:<br>
&gt;&gt;<br>
&gt;&gt; A) X2GoClient<br>
&gt;&gt; Using SHADOW mode with &quot;--hide&quot; does not work. The inter=
face waits for<br>
&gt;&gt; selection of Display (usually &quot;:0&quot;) and, since there&#39=
;s no input from<br>
&gt;&gt; user (there&#39;s no window) the program does not show anything.<b=
r>
&gt;&gt; There are possible ways of fixing/improving this situation:<br>
&gt;&gt; -allow user to set the default display on sessions&#39; file<br>
&gt;&gt; -create one flag and run program like these: &quot;x2goclient --hi=
de<br>
&gt;&gt; --sessionid=3Dxxx --select-first-display&quot;<br>
&gt;&gt;<br>
&gt;&gt; Anyway, i modified the code of x2goclient/onmainwindow.cpp and add=
ed<br>
&gt;&gt; these lines:<br>
&gt;&gt; l4348:..if( shadowSession )<br>
&gt;&gt; l4349:....slotShadowSess();<br>
&gt;&gt; Compiled the program, and now i can run &quot;./x2goclient --hide<=
br>
&gt;&gt; --sessionid=3Dxxx&quot; and the window will show up.<br>
&gt;&gt; This is NOT a fix, this is a nasty workaround. It wontn show the l=
ist<br>
&gt;&gt; even when the &quot;hide&quot; flag is not present.<br>
&gt;<br>
&gt;<br>
&gt; Please provide a patch for what you did.<br>
&gt;<br>
&gt; Please improve your patch so it is not a workaround anymore. I guess, =
I<br>
&gt; agree with you, that the X2Go Client window should pop up, if there ar=
e more<br>
&gt; than one sharable desktops to select from. If there is only one sharab=
le<br>
&gt; desktop, this should be auto-selected. Can you code that into X2Go Cli=
ent,<br>
&gt; please?<br>
&gt;<br>
&gt;&gt; B) X2GoDesktopSharing<br>
&gt;&gt; Just the icon on SystemTray. If we could pass a flag like &quot;--=
no-icon&quot;<br>
&gt;&gt; would be great<br>
&gt;<br>
&gt;<br>
&gt; This part will be handled in a separate bug. I will reply to this once=
 the<br>
&gt; separate bug is created in X2Go BTS.<br>
&gt;<br>
&gt;&gt; I could do these simple changes on my own, but i rather see this<b=
r>
&gt;&gt; changes on the official code.<br>
&gt;<br>
&gt;<br>
&gt; Let&#39;s try to get your needs into upstream code...<br>
&gt;<br>
&gt; Mike<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; DAS-NETZWERKTEAM<br>
&gt; mike gabriel, herweg 7, 24357 fleckeby<br>
&gt; fon: +49 (1520) 1976 148<br>
&gt;<br>
&gt; GnuPG Key ID 0x25771B31<br>
&gt; mail: <a href=3D"mailto:mike.gabriel@das-netzwerkteam.de">mike.gabriel=
@das-netzwerkteam.de</a>, <a href=3D"http://das-netzwerkteam.de" target=3D"=
_blank">http://das-netzwerkteam.de</a><br>
&gt;<br>
&gt; freeBusy:<br>
&gt; <a href=3D"https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-n=
etzwerkteam.de.xfb" target=3D"_blank">https://mail.das-netzwerkteam.de/free=
busy/m.gabriel%40das-netzwerkteam.de.xfb</a><br>
</div></div></blockquote></div><br></div>

--f46d0418270252d6b904ed17f304--
