Adds Custom File to the app launcher

PHOTO EMBED

Mon Dec 09 2024 21:10:59 GMT+0000 (Coordinated Universal Time)

Saved by @jrray ##linux

# create file with python or desired programming language (eg. python.py)

# create (pythonfile).desktop file
[Desktop Entry]
Name=(Custome_Progams_Name)
Comment=(comment)
Exec=(your commands, eg. bash -c "cd /directory/of/custPython_program && (Environment)python3 -m venv myenv && source (/dir/of/env) && pip install (modules) && python3 (pythonfile).py")
Icon=/dir/of/(pythonfile)/icon.ico
Terminal=true
Type=Application
categories=Utility;

# Copy (pythonfile).desktop to local application database
cp ~/dir/of/(pythonfile).desktop ~/.local/share/applications

# Ensure Permissions
chmod +x ~/.local/share/applications/(pythonfile).desktop

# Update system application database
update-desktop-database ~/.local/share/applications

content_copyCOPY

Used within Linux Ubuntu to create custom program entries into the app launcher of Ubuntu