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
<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://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fprotect2.fireeye.com%2Fv1%2Furl%3Fk%3D31323334-501d5122-31356fd6-454445555731-a8425f343e5c4fad%26q%3D1%26e%3D30530535-2971-48a4-8441-12c02ea4dc09%26u%3Dhttps%253A%252F%252Feur01.safelinks.protection.outlook.com%252F%253Furl%253Dhttp%25253A%25252F%25252Fwww.veolia.com%25252F%2526data%253D05%25257C01%25257Csergi.carmona%252540agbar.es%25257C4c93dad3808642dd7ec308da3ccb99ab%25257Cf4a12867922d4b9dbb859ee7898512a0%25257C0%25257C0%25257C637889142388029142%25257CUnknown%25257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%25253D%25257C3000%25257C%25257C%25257C%2526sdata%253DJJM7r2MgHUaiuJD%25252Bk2xlr3opNEFsJkp%25252Byh2MJq0XRS0%25253D%2526reserved%253D0&data=05%7C01%7Coriol.val%40agbar.es%7C8a3587bd93134628cf9908da4d2baf8e%7Cf4a12867922d4b9dbb859ee7898512a0%7C0%7C0%7C637907147446774859%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5Vjff2WWXgkB77AldZ5g116HPKmbRv1h5PRjQjH9k0o%3D&reserved=0>




El lun, 15 jul 2024 a las 20:42, Kaminski, Thomas
(<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>
> *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
> <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>
>
>
>
>
>
> 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