Sample Header Ad - 728x90

Detach running command from terminal window

4 votes
1 answer
457 views
I run the following .desktop file in Gnome, to start my Remote Session: [Desktop Entry] Type=Application Encoding=UTF-8 Name=xfreerdp RDP Comment=A sample application Exec=/usr/bin/xfreerdp +clipboard +smart-sizing -decorations /u:myuser /d:DOMAIN /v:pc.domain.com /f /kbd:0x00000807 /fonts Icon=/home/user/.local/share/applications/rdp.png Terminal=true This will open a Terminal window to type the password for the session. After i fill in the passwort, the session start. Now, if i close the terminal, the Remote Session also closes. How do i prevent that? What i tried so far is, instead to start xfreerdp directly, run a bash script, which usese '&' for spawnig, which not worked. Here is how this is look like: [Desktop Entry] Type=Application Encoding=UTF-8 Name=xfreerdp RDP Comment=A sample application Exec=/home/user/.local/share/applications/xfreerdp.sh Icon=/home/user/.local/share/applications/rdp.png Terminal=true Here is the xfreerdp.sh script: echo "password:" read p /usr/bin/xfreerdp +clipboard +smart-sizing -decorations /p:$p /u:user /d:DOMAIN /v:pc.domain.com /f /kbd:0x00000807 /fonts &
Asked by cat Man (88 rep)
Aug 10, 2023, 07:35 AM
Last activity: Aug 14, 2023, 04:23 PM