From 0c3dcc2d668ece0ee416729627004af1ac9ffe3f Mon Sep 17 00:00:00 2001 From: Bruce Schubert Date: Wed, 4 Nov 2020 15:25:35 -0800 Subject: [PATCH] Added Linux desktop files to the setup. - Re: #109 --- bin/configure-callattendant.desktop | 8 ++++++++ bin/monitor-callattendant.desktop | 8 ++++++++ bin/restart-callattendant.desktop | 8 ++++++++ bin/stop-callattendant.desktop | 8 ++++++++ setup.py | 10 ++++++++++ 5 files changed, 42 insertions(+) create mode 100644 bin/configure-callattendant.desktop create mode 100644 bin/monitor-callattendant.desktop create mode 100644 bin/restart-callattendant.desktop create mode 100644 bin/stop-callattendant.desktop diff --git a/bin/configure-callattendant.desktop b/bin/configure-callattendant.desktop new file mode 100644 index 0000000..1ae1c78 --- /dev/null +++ b/bin/configure-callattendant.desktop @@ -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; diff --git a/bin/monitor-callattendant.desktop b/bin/monitor-callattendant.desktop new file mode 100644 index 0000000..c4755bc --- /dev/null +++ b/bin/monitor-callattendant.desktop @@ -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; diff --git a/bin/restart-callattendant.desktop b/bin/restart-callattendant.desktop new file mode 100644 index 0000000..c82d085 --- /dev/null +++ b/bin/restart-callattendant.desktop @@ -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; diff --git a/bin/stop-callattendant.desktop b/bin/stop-callattendant.desktop new file mode 100644 index 0000000..6c5c57b --- /dev/null +++ b/bin/stop-callattendant.desktop @@ -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; diff --git a/setup.py b/setup.py index 803e645..7ad2774 100644 --- a/setup.py +++ b/setup.py @@ -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", @@ -70,4 +79,5 @@ "Topic :: Home Automation", ], python_requires='>=3.5', + )