-
Notifications
You must be signed in to change notification settings - Fork 0
Desktop Entries for the software
All desktop entries are files named file.desktop
, which are basically text files that point to a script and an image, to be shown in the Desktop of the Raspberry Pi and ease general software usage through quick access to the GUIs. These files have been stored in the folder desktop_entries
and look like this:
[Desktop Entry]
Type=Application
Comment=flowGUI
Name=flowGUI
Exec=python3 /home/pi/homecage_quantification/GUI.py
Icon=/home/pi/homecage_quantification/docs_img/flow_logo.png
Terminal=true
Categories=Utility
StartupNotify=true
The general idea is to copy these files into the Desktop
folder in each Raspberry (hopefully someday implemented in setup.sh
). We can also do this manually or from the terminal as below (example shown for flowGUI.desktop
).
cp /home/pi/homecage_quantification/desktop_entries/flowGUI.desktop /home/pi/Desktop/flowGUI.desktop
When you put entries into Desktop and try to open the files, you will receive a notification asking whether you want to actually open it or execute it on terminal. This is the behavior by default in Raspbian. We always want to execute so we can go and change that in the preferences. To do so:
In Filemanager
[Edit] --> [Preferences] --> [General]
[x] Don't ask options on launch executable file
Here's how the dialogue looks like