Skip to content

Commit

Permalink
Merge pull request #118 from emxsys/setup-shortcuts
Browse files Browse the repository at this point in the history
Add shortcuts (.desktop files) to the setup
  • Loading branch information
emxsys authored Nov 5, 2020
2 parents 33d25a4 + 0c3dcc2 commit 4efcec9
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/configure-callattendant.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[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;
8 changes: 8 additions & 0 deletions bin/monitor-callattendant.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Comment=Monitor the callattendant service logs
Terminal=true
Name=Monitor Call Attendant
Exec=monitor-callattendant
Type=Application
Icon=leftjust
Categories=System;
8 changes: 8 additions & 0 deletions bin/restart-callattendant.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Comment=(Re)start the callattendant service
Terminal=true
Name=Restart Call Attendant
Exec=restart-callattendant
Type=Application
Icon=call-start
Categories=System;
8 changes: 8 additions & 0 deletions bin/stop-callattendant.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Comment=Stop the callattendant service
Terminal=true
Name=Stop Call Attendant
Exec=stop-callattendant
Type=Application
Icon=call-stop
Categories=System;
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@
"bin/restart-callattendant",
"bin/monitor-callattendant",
],
data_files = [
('share/applications', [
'bin/configure-callattendant.desktop',
'bin/monitor-callattendant.desktop',
'bin/restart-callattendant.desktop',
'bin/stop-callattendant.desktop',
]
),
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
Expand All @@ -70,4 +79,5 @@
"Topic :: Home Automation",
],
python_requires='>=3.5',

)

0 comments on commit 4efcec9

Please sign in to comment.