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 &
disownafter thecommand &line./dev/nullto see if it helps. Also, leave the gnome desktop file for now, do all tests in a regular shell, gnome is just a distraction./dev/null, doesn't it mean you don't see the password prompt?