(Linux) having a desktop launcher for a partly-terminal-based program

mikeymikec

Lifer
May 19, 2011
20,339
15,009
136
I use rdesktop to connect to my Windows-based server on the LAN. rdesktop works fine most of the time, however having the program launcher point directly to rdesktop can sometimes cause an issue because occasionally it wants to confirm that I'm definitely connecting to such-and-such, and this confirmation occurs as a terminal message; when this happens, running direct from the program launcher results in no noticeable reaction (ie. double-click on the icon and nothing happens).

My solution is a bash script which runs rdesktop with the required parameters, then when I double click on the launcher that points to that bash script, it asks me a question and I click on the 'run in terminal' option. A terminal window then opens and most of the time rdesktop fires up the window giving me remote access to my server. The worst case scenario is that the second window doesn't open because the terminal window is asking a question that I then answer, then the second window opens.

Is there a more graceful way of achieving this?
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,612
4,531
75
Try:
Code:
xterm -e /bin/bash -l -c "[your program]"
 

mikeymikec

Lifer
May 19, 2011
20,339
15,009
136
I tried it but Mint wouldn't let me put that into the command line of a 'create launcher' window.

If it did work, what would be the outcome?
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,612
4,531
75
I tried it but Mint wouldn't let me put that into the command line of a 'create launcher' window.

If it did work, what would be the outcome?
That's odd. It worked for me. Here's the launcher properties I used and the window it creates.

Screenshot_2025-07-07_17-10-36.png

Maybe xterm is not installed for you?