diff --git a/README.md b/README.md index ddfd02c5..f70209c4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ui/kcm_opensnitch.desktop b/ui/kcm_opensnitch.desktop new file mode 100644 index 00000000..4960b86f --- /dev/null +++ b/ui/kcm_opensnitch.desktop @@ -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 diff --git a/ui/opensnitch_ui.desktop b/ui/opensnitch_ui.desktop new file mode 100644 index 00000000..942d692d --- /dev/null +++ b/ui/opensnitch_ui.desktop @@ -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; \ No newline at end of file diff --git a/ui/setup.py b/ui/setup.py index 37fb8e53..d546ea8b 100644 --- a/ui/setup.py +++ b/ui/setup.py @@ -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)