Merge pull request #146 from intika/master-autostart

adding autostart instructions
This commit is contained in:
Simone Margaritelli 2018-04-14 20:45:28 +02:00 committed by GitHub
commit d105849005
Failed to generate hash of commit
4 changed files with 29 additions and 1 deletions

View file

@ -57,6 +57,10 @@ The UI is pip installable itself:
sudo pip3 install .
This will install the `opensnitch-ui` command on your system.
Add OpenSnitch UI to startup app:
cp opensnitch_ui.desktop /home/user/.config/autostart/
### Running

12
ui/kcm_opensnitch.desktop Normal file
View file

@ -0,0 +1,12 @@
[Desktop Entry]
Exec=opensnitch-ui
Icon=preferences-system-firewall
Type=Service
X-KDE-ServiceTypes=SystemSettingsExternalApp
X-KDE-System-Settings-Parent-Category=system-administration
Name=OpenSnitch Firewall
Comment=OpenSnitch Firewall Graphical Interface
X-KDE-Keywords=system,firewall,policies,security,polkit,policykit,douane

10
ui/opensnitch_ui.desktop Normal file
View file

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=OpenSnitch
Exec=opensnitch-ui
Icon=preferences-system-firewall
GenericName=OpenSnitch Firewall
Terminal=false
MimeType=application/x-douane-configurator;
Categories=System;Filesystem;Network;
Keywords=system;firewall;policies;security;polkit;policykit;douane;

View file

@ -17,6 +17,8 @@ setup(name='opensnitch-ui',
license='GPL',
packages=find_packages(),
include_package_data = True,
package_data={'': '*.*'},
package_data={'': ['*.*']},
data_files=[('/usr/share/applications', ['opensnitch_ui.desktop']),
('/usr/share/kservices5', ['kcm_opensnitch.desktop'])],
scripts = [ 'bin/opensnitch-ui' ],
zip_safe=False)