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>
Gesendet: Montag, 15. Juli 2024 14:50
An: 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

Reply via email to