iliketrainz98
Posts: 3
Joined: Wed Jul 03, 2013 6:19 pm

Desktop Shortcut

Thu Jul 25, 2019 9:07 am

Hi There,

I have a desktop shortcut to open a python file (which is a GUI). I want to have one shortcut which opens with a terminal window behind for debugging purposes. This used to work however a recent update to raspian has changed this. When I open either file I get a dialogue box saying: "This text file 'Start data Logger' seems to be an executable script. What do you want to do with it?". I don't want this prompt to appear on open, I want the application straight away.

https://imgur.com/zT6TKpr


The desktop entry for the non-terminal one is :

Code: Select all

[Desktop Entry]
Name=Start Data Logger (Debugging Mode)
Comment=Start the Data Logger with Debugging Mode Enabled (Terminal Window Open)
Icon=/usr/share/pixmaps/openbox.xpm
Exec=bash -c 'cd "/home/pi/Github/DataLogger/RPI" && python3 gui.py'
Type=Application
Encoding=UTF-8
Terminal=False
Categories=None;
And for the one with the terminal:

Code: Select all

[Desktop Entry]
Name=Start Data Logger (Debugging Mode)
Comment=Start the Data Logger with Debugging Mode Enabled (Terminal Window Open)
Icon=/usr/share/pixmaps/openbox.xpm
Exec=bash -c 'cd "/home/pi/Github/DataLogger/RPI" && python3 gui.py'
Type=Application
Encoding=UTF-8
Terminal=True
Categories=None;
Thanks for your help!

Return to “Troubleshooting”