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/bashexec /bin/sh /etc/X11/Xsession &sleep 3exec /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://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>