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;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;