Hello Manel,

About "If I understand your approach, the user .xsession file modifies the 
default XRDP behavior to automatically launch app.sh, right?"
Yes.

About "If I apply this change, on the start program connection field, what path 
should I specify and how can I add the user parameters like ${GUAC_USERNAME}?"
We not configure a special start procedure or something in Guacamole. We 
configured only a simple rdp login with user and password. This works with a 
plain remotedesktop connection from a windows client too.
The procedure with the .xsession file is independent from Guacamole.

Thomas Kaminski
KION CLOUD Architecture (EMEA)
KION Group IT

Von: Molina de la Iglesia, Manuel 
<manuel.molina-de-la-igle...@veolia.com.INVALID>
Gesendet: Dienstag, 16. Juli 2024 09:34
An: thomas.kamin...@kiongroup.com.invalid
Cc: user@guacamole.apache.org
Betreff: Re: Start web application trough XRDP


WARNING: This email originated outside of the company. DO NOT CLICK links or 
attachments or enter any information into forms unless you trust the sender and 
know the content is safe.
Hello,

If I understand your approach, the user .xsession file modifies the default 
XRDP behavior to automatically launch app.sh, right?

If I apply this change, on the start program connection field, what path should 
I specify and how can I add the user parameters like ${GUAC_USERNAME}?

Thanks!

Manel Molina
manuel.molina-de-la-igle...@veolia.com<mailto:manuel.molina-de-la-igle...@veolia.com>
Dirección de Ciberseguridad
Ciutat de L'Aigua (D38)
Paseo de la Zona Franca, 48
08038 Barcelona / España
www.veolia.com<https://protect2.fireeye.com/v1/url?k=31323334-501d5122-31356fd6-454445555731-a8425f343e5c4fad&q=1&e=30530535-2971-48a4-8441-12c02ea4dc09&u=https%3A%2F%2Feur01.safelinks.protection.outlook.com%2F%3Furl%3Dhttp%253A%252F%252Fwww.veolia.com%252F%26data%3D05%257C01%257Csergi.carmona%2540agbar.es%257C4c93dad3808642dd7ec308da3ccb99ab%257Cf4a12867922d4b9dbb859ee7898512a0%257C0%257C0%257C637889142388029142%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C3000%257C%257C%257C%26sdata%3DJJM7r2MgHUaiuJD%252Bk2xlr3opNEFsJkp%252Byh2MJq0XRS0%253D%26reserved%3D0>

[https://lh6.googleusercontent.com/NQV9u40gljVwEqEKuehJa7RKmmfRae8z2UYjOxr5GVL5ok2fdqBmZzcVbk0umI01LS-Mgfv2KWX2S5LJBd23DohY8J-I8ztlXhure-9MAOCXJC8pWplfaaMxikBt7GS2csFWIjlEXNc]


El lun, 15 jul 2024 a las 20:42, Kaminski, Thomas 
(<thomas.kamin...@kiongroup.com.invalid<mailto:thomas.kamin...@kiongroup.com.invalid>>)
 escribió:
Hello Manuel,
we solve this with this configuration in the user home directory. Don't forget 
chmod +x  /home/user/.xsession .

cat /home/user/.xsession
#!/usr/bin/env bash
/usr/bin/mutter --x11 --replace /usr/local/bin/app.sh


A simple xterm is possible too with
#!/usr/bin/env bash
/usr/bin/mutter --x11 --replace /usr/bin/xterm


Thomas Kaminski
KION CLOUD Architecture (EMEA)
KION Group IT

Von: Molina de la Iglesia, Manuel 
<manuel.molina-de-la-igle...@veolia.com.INVALID<mailto:manuel.molina-de-la-igle...@veolia.com.INVALID>>
Gesendet: Montag, 15. Juli 2024 14:50
An: user@guacamole.apache.org<mailto:user@guacamole.apache.org>
Betreff: Start web application trough XRDP


WARNING: This email originated outside of the company. DO NOT CLICK links or 
attachments or enter any information into forms unless you trust the sender and 
know the content is safe.
Hello,

I want to use the "start application" feature of an RDP connection to 
automatically launch a python script on an ubuntu desktop machine.

This python script receives some parameters like an url, ${GUAC_USERNAME} and 
$[GUAC_PASSWORD], then using selenium the script launches a firefox, on kiosk 
mode, goes to the web application and performs user login. Mention that Iwas 
not able to directly launch python, but using a bash script like wrapper works.

Now the process works properly the first time that I connect, but the following 
times the screen remains black and nothing happens. After restart xrdp service 
works again.

This is the content of my bash script:

#!/bin/bash
exec /bin/sh /etc/X11/Xsession &
sleep 3
exec /usr/bin/python3 /home/ubuntu/ff.py $1 $2 $3 $4

I discovered that when the user closes firefox, the process remains in zombie 
mode without being completely killed.

I don't understand at all how Ubuntu manages graphical user sessions. Could 
someone help me to find what's wrong?

Thanks
Best regards.

Manel Molina
manuel.molina-de-la-igle...@veolia.com<mailto:manuel.molina-de-la-igle...@veolia.com>
Dirección de Ciberseguridad
Ciutat de L'Aigua (D38)
Paseo de la Zona Franca, 48
08038 Barcelona / España
www.veolia.com<https://protect2.fireeye.com/v1/url?k=31323334-501d5122-31356fd6-454445555731-a8425f343e5c4fad&q=1&e=30530535-2971-48a4-8441-12c02ea4dc09&u=https%3A%2F%2Feur01.safelinks.protection.outlook.com%2F%3Furl%3Dhttp%253A%252F%252Fwww.veolia.com%252F%26data%3D05%257C01%257Csergi.carmona%2540agbar.es%257C4c93dad3808642dd7ec308da3ccb99ab%257Cf4a12867922d4b9dbb859ee7898512a0%257C0%257C0%257C637889142388029142%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C3000%257C%257C%257C%26sdata%3DJJM7r2MgHUaiuJD%252Bk2xlr3opNEFsJkp%252Byh2MJq0XRS0%253D%26reserved%3D0>

[https://lh6.googleusercontent.com/NQV9u40gljVwEqEKuehJa7RKmmfRae8z2UYjOxr5GVL5ok2fdqBmZzcVbk0umI01LS-Mgfv2KWX2S5LJBd23DohY8J-I8ztlXhure-9MAOCXJC8pWplfaaMxikBt7GS2csFWIjlEXNc]


KION Information Management Services GmbH
Sitz der Gesellschaft | Registered Office: Frankfurt am Main (Germany)
Registergericht | Court of Registration: Frankfurt am Main (Germany), HRB 110454
USt-Id-Nr. | VAT No. DE 254777238
Geschäftsführung | Managing Director: Hansjörg Heinrich

KION Information Management Services GmbH
Sitz der Gesellschaft | Registered Office: Frankfurt am Main (Germany)
Registergericht | Court of Registration: Frankfurt am Main (Germany), HRB 110454
USt-Id-Nr. | VAT No. DE 254777238

Geschäftsführung | Managing Director: Hansjörg Heinrich

Reply via email to