emxsys / callattendant

A python-based automated call attendant, call blocker, and voice messaging system running on a Raspberry Pi. Screens callers and block robocalls and scams with a low-cost Raspberry Pi and modem.
https://emxsys.github.io/callattendant/
MIT License
117 stars 36 forks source link

Add .desktop shortcuts to setup.py package install #109

Closed emxsys closed 3 years ago

emxsys commented 4 years ago

Create shortcuts in System Tools for the following commands:

setup.py example:
setup(
    name       = 'myapplication',
    version    = '0.1',
    packages   = ['myapplication'],
    data_files = [
        ('share/applications', ['data/org.myapplication.desktop']),
    ],
)

See: https://stackoverflow.com/a/44462146/4797523

emxsys commented 4 years ago

Example .desktop file contents: configure-callattendant.desktop, typically located in ~/.local/share/applications

[Desktop Entry]
Comment=Edit the callattendant configuration
Terminal=true
Name=Configure Call Attendant
Exec=nano ~/.callattendant/app.cfg
Type=Application
Icon=emblem-system
Categories=System;