You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Kashif Sohail <ka...@gmail.com> on 2019/01/24 03:50:36 UTC

Issue regarding starting application with Initial program

Hi

My query is regarding "Initial Program" option. I am able to run say
Firefox but the issue is there is no option to resize or close the windows.

Is there any way to get around this issue?

Thanks

>
>

Re: Issue regarding starting application with Initial program

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Jan 25, 2019 at 6:43 AM Kashif Sohail <ka...@gmail.com>
wrote:

> Any thoughts guys. is it possible to pass on parameters while
> using initial Program or not? I understand Nick Couchman has proposed to
> run start up script but still wondering if Guacamole allows to run the
> command and pass on parameters along it in one go?
>
>
If, for some reason, this doesn't work, I suspect it's not with Guacamole,
per se, but with the way the initial program parameter is interpreted by
the RDP server - probably quotes needed somewhere or something along those
lines.  Hard to say for sure - I have not used that parameter much.

-Nick

Re: Issue regarding starting application with Initial program

Posted by Kashif Sohail <ka...@gmail.com>.
Any thoughts guys. is it possible to pass on parameters while using initial
Program or not? I understand Nick Couchman has proposed to run start up
script but still wondering if Guacamole allows to run the command and pass
on parameters along it in one go?



On Thu, Jan 24, 2019 at 11:38 PM Nick Couchman <vn...@apache.org> wrote:

> On Thu, Jan 24, 2019 at 6:01 AM Kashif Sohail <ka...@gmail.com>
> wrote:
>
>> thanks. That seems pretty good idea.
>>
>> Issue is when I pass on any arguments after the program in
>> initial_program parameter then Guacamole does not execute. In fact, it does
>> not execute the program itself. If I remove the arguments then it works.
>>
>> e.g. if I pass on initial Program as "chromium-browser" it works.  but if
>> I pass it on as "chromium-browser --start-maximized"  does not work but
>> open the desktop
>>
>> Cant we pass arguments with Initial Program ?
>>
>
> Hmmm....I'd have to look into that, but, I'd say the quickest option would
> be to create a startup script that runs "chromium-browser
> --start-maximized" and specify that script as the initial program.
>
> -Nick
>
>>

Re: Issue regarding starting application with Initial program

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Jan 24, 2019 at 6:01 AM Kashif Sohail <ka...@gmail.com>
wrote:

> thanks. That seems pretty good idea.
>
> Issue is when I pass on any arguments after the program in initial_program
> parameter then Guacamole does not execute. In fact, it does not execute the
> program itself. If I remove the arguments then it works.
>
> e.g. if I pass on initial Program as "chromium-browser" it works.  but if
> I pass it on as "chromium-browser --start-maximized"  does not work but
> open the desktop
>
> Cant we pass arguments with Initial Program ?
>

Hmmm....I'd have to look into that, but, I'd say the quickest option would
be to create a startup script that runs "chromium-browser
--start-maximized" and specify that script as the initial program.

-Nick

>

Re: Issue regarding starting application with Initial program

Posted by Kashif Sohail <ka...@gmail.com>.
thanks. That seems pretty good idea.

Issue is when I pass on any arguments after the program in initial_program
parameter then Guacamole does not execute. In fact, it does not execute the
program itself. If I remove the arguments then it works.

e.g. if I pass on initial Program as "chromium-browser" it works.  but if I
pass it on as "chromium-browser --start-maximized"  does not work but open
the desktop

Cant we pass arguments with Initial Program ?

On Thu, Jan 24, 2019 at 8:50 PM Nick Couchman <vn...@apache.org> wrote:

> On Thu, Jan 24, 2019 at 12:40 AM Kashif Sohail <ka...@gmail.com>
> wrote:
>
>> As I am coming from windows environment, hence will appreciate if one can
>> point me to some resource or example explaining to do the feat.
>>
>>
>>
> A couple of possibilities:
> - If you don't care about having a window manager (being able to minimize
> the window or open other windows), you could try starting Chromium with the
> "--start-maximized" option and see if that works.  It may still not work or
> behave properly without a window manager, but it might work and just have
> Chromium fill the whole screen.
> - If you need a window manager, you'll first have to pick one (unity,
> xfce, lxde, kde, etc.) and identify the command to start that window
> manager.  You'd then write a script something like this:
>
> #!/bin/sh
> start-xfce4
> chromium-browser
>
> And have that script execute when XRDP is started.  If you do a Google
> search for "xrdp window manager startup script" or "window manager startup
> script" you should find a wide variety of examples and advice on creating
> one that will work for you.
>
> -Nick
>
>>

Re: Issue regarding starting application with Initial program

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Jan 24, 2019 at 12:40 AM Kashif Sohail <ka...@gmail.com>
wrote:

> As I am coming from windows environment, hence will appreciate if one can
> point me to some resource or example explaining to do the feat.
>
>
>
A couple of possibilities:
- If you don't care about having a window manager (being able to minimize
the window or open other windows), you could try starting Chromium with the
"--start-maximized" option and see if that works.  It may still not work or
behave properly without a window manager, but it might work and just have
Chromium fill the whole screen.
- If you need a window manager, you'll first have to pick one (unity, xfce,
lxde, kde, etc.) and identify the command to start that window manager.
You'd then write a script something like this:

#!/bin/sh
start-xfce4
chromium-browser

And have that script execute when XRDP is started.  If you do a Google
search for "xrdp window manager startup script" or "window manager startup
script" you should find a wide variety of examples and advice on creating
one that will work for you.

-Nick

>

Re: Issue regarding starting application with Initial program

Posted by Kashif Sohail <ka...@gmail.com>.
As I am coming from windows environment, hence will appreciate if one can
point me to some resource or example explaining to do the feat.



On Thu, Jan 24, 2019 at 4:06 PM Mike Jumper <mj...@apache.org> wrote:

> On Wed, Jan 23, 2019, 21:04 Kashif Sohail <kashifsohail@gmail.com wrote:
>
>> Thanks for reply.  I understand. Any general advise how to run the
>> windows manager with one single application?
>>
>
> Sure - write a shell script which does so.
>
> - Mike
>
>

Re: Issue regarding starting application with Initial program

Posted by Mike Jumper <mj...@apache.org>.
On Wed, Jan 23, 2019, 21:04 Kashif Sohail <kashifsohail@gmail.com wrote:

> Thanks for reply.  I understand. Any general advise how to run the windows
> manager with one single application?
>

Sure - write a shell script which does so.

- Mike

Re: Issue regarding starting application with Initial program

Posted by Kashif Sohail <ka...@gmail.com>.
Thanks for reply.  I understand. Any general advise how to run the windows
manager with one single application?

On Thu, Jan 24, 2019 at 4:01 PM Mike Jumper <mj...@apache.org> wrote:

> On Wed, Jan 23, 2019, 20:49 Kashif Sohail <kashifsohail@gmail.com wrote:
>
>> Below screenshots may give you better picture of issue. its XRDP running.
>>
>> Browser issue: one can see no close or resize screen option.
>>
>
> You likely need to also run a window manager. If XRDP is running only that
> application, there is nothing running to manage that application's window
> and provide resize, close, etc.
>
> This isn't really a Guacamole issue. You would see this behavior for the
> same parameters given to any RDP client.
>
> - Mike
>
>

Re: Issue regarding starting application with Initial program

Posted by Mike Jumper <mj...@apache.org>.
On Wed, Jan 23, 2019, 20:49 Kashif Sohail <kashifsohail@gmail.com wrote:

> Below screenshots may give you better picture of issue. its XRDP running.
>
> Browser issue: one can see no close or resize screen option.
>

You likely need to also run a window manager. If XRDP is running only that
application, there is nothing running to manage that application's window
and provide resize, close, etc.

This isn't really a Guacamole issue. You would see this behavior for the
same parameters given to any RDP client.

- Mike

Re: Issue regarding starting application with Initial program

Posted by Kashif Sohail <ka...@gmail.com>.
Below screenshots may give you better picture of issue. its XRDP running.

Browser issue: one can see no close or resize screen option.

[image: image.png]




Guacamole settings:  I am using the value "/usr/bin/chromium-browser"  in
initial Program, as can be seen below



[image: image.png]

Thanks


On Thu, Jan 24, 2019 at 3:14 PM Kashif Sohail <ka...@gmail.com>
wrote:

> I am running following command:
>
>  /usr/bin/chromium-browser
>
> Yes, its XRDP.
>
>
>
> On Thu, Jan 24, 2019 at 3:04 PM Mike Jumper <mj...@apache.org> wrote:
>
>> On Wed, Jan 23, 2019, 19:57 Kashif Sohail <kashifsohail@gmail.com wrote:
>>
>>> I am afraid, I am not sure. What I am using is initial program parameter
>>> under basing setting, as in screenshot below
>>>
>>> [image: image.png]
>>>
>>
>> Can you paste the full contents of what you're running? The command isn't
>> fully visible in the screenshot.
>>
>> Is this using XRDP?
>>
>> - Mike
>>
>>

Re: Issue regarding starting application with Initial program

Posted by Kashif Sohail <ka...@gmail.com>.
I am running following command:

 /usr/bin/chromium-browser

Yes, its XRDP.



On Thu, Jan 24, 2019 at 3:04 PM Mike Jumper <mj...@apache.org> wrote:

> On Wed, Jan 23, 2019, 19:57 Kashif Sohail <kashifsohail@gmail.com wrote:
>
>> I am afraid, I am not sure. What I am using is initial program parameter
>> under basing setting, as in screenshot below
>>
>> [image: image.png]
>>
>
> Can you paste the full contents of what you're running? The command isn't
> fully visible in the screenshot.
>
> Is this using XRDP?
>
> - Mike
>
>

Re: Issue regarding starting application with Initial program

Posted by Mike Jumper <mj...@apache.org>.
On Wed, Jan 23, 2019, 19:57 Kashif Sohail <kashifsohail@gmail.com wrote:

> I am afraid, I am not sure. What I am using is initial program parameter
> under basing setting, as in screenshot below
>
> [image: image.png]
>

Can you paste the full contents of what you're running? The command isn't
fully visible in the screenshot.

Is this using XRDP?

- Mike

Re: Issue regarding starting application with Initial program

Posted by Kashif Sohail <ka...@gmail.com>.
I am afraid, I am not sure. What I am using is initial program parameter
under basing setting, as in screenshot below

[image: image.png]

On Thu, Jan 24, 2019 at 2:53 PM Mike Jumper <mj...@apache.org> wrote:

> On Wed, Jan 23, 2019, 19:50 Kashif Sohail <kashifsohail@gmail.com wrote:
>
>> Hi
>>
>> My query is regarding "Initial Program" option. I am able to run say
>> Firefox but the issue is there is no option to resize or close the windows.
>>
>
> Are you running Firefox in kiosk mode?
>
> - Mike
>
>

Re: Issue regarding starting application with Initial program

Posted by Mike Jumper <mj...@apache.org>.
On Wed, Jan 23, 2019, 19:50 Kashif Sohail <kashifsohail@gmail.com wrote:

> Hi
>
> My query is regarding "Initial Program" option. I am able to run say
> Firefox but the issue is there is no option to resize or close the windows.
>

Are you running Firefox in kiosk mode?

- Mike