Commit graph

863 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
00bfd58510 UI: added filter by command line/args
In the future we'll filter by part of the command line.
2020-04-12 22:10:59 +02:00
Gustavo Iñiguez Goia
60005d7497 UI: added help menu
Added help menu to load the wiki.
2020-04-10 13:15:11 +02:00
Gustavo Iñiguez Goia
1e11e52457 deb UI packages improved
- kill UI on uninstall.
- update system icon cache after installing.
2020-04-09 18:51:17 +02:00
Gustavo Iñiguez Goia
ab1513334b Merge branch 'ui2.0' into main: fixed UI icons 2020-04-09 18:48:40 +02:00
Gustavo Iñiguez Goia
7c647f5782 fixed UI icons
- display correctly the connection status with the daemon whe it's
  disconnected.
- display correctly the icon (at least on gnome).
- changed "active" icon to svg, to fix a size problem displaying
  notifications on gnome.
2020-04-09 18:45:05 +02:00
Gustavo Iñiguez Goia
9d139a3f51 fixed not answered dialog alert icon
On gnome-shell,ubuntu 18.04 by using the Warning icon, it substituted
our icon by another one. So use NoIcon, since we're already setting our
own alert icon.
2020-04-09 17:07:58 +02:00
Gustavo Iñiguez Goia
2d5b89a0d4 UI: removed configparser dependency
It looks like it's part of python since 3.2, and as far as I can tell
without the pip dependency work just fine (tested on ubuntu >=14.x, mint
>= 18, debian >= 8.x).

It should also help packaging for ArchLinux #8.
2020-03-12 01:22:45 +01:00
Gustavo Iñiguez Goia
6c64438256 UI: removed configparser dependency
It looks like it's part of python since 3.2, and as far as I can tell
without the pip dependency work just fine (tested on ubuntu >=14.x, mint
>= 18, debian >= 8.x).
2020-03-12 01:18:26 +01:00
Gustavo Iñiguez Goia
0139e28c38 UI deb package: removed duplicated dependency.
protobuf is already installed by the grpcio-tools package.
2020-03-12 00:50:21 +01:00
Gustavo Iñiguez Goia
27778c1fd6 Bump version to v1.0.0rc6 2020-03-08 20:59:57 +01:00
Gustavo Iñiguez Goia
8194199955 Merge branch 'ui2.0': workaround for cinnamon systray icon 2020-03-08 01:10:53 +01:00
Gustavo Iñiguez Goia
802c19fc0d Workaround to show up the systray icon on Cinnamon
On Linux Mint 19.3, Cinnamon 4.4, the systray icon was not showing up.
Adding a delay of ~3s solves this problem.
2020-02-26 00:55:01 +01:00
Gustavo Iñiguez Goia
7cb0a25119 Bump version to v1.0.0rc5 2020-02-24 20:07:22 +01:00
Gustavo Iñiguez Goia
2b1cfcd6ef Merged UI fixes. 2020-02-24 20:00:33 +01:00
Gustavo Iñiguez Goia
a34f215252 UI deb package: added qt sqlite lib dependency
On LinuxMint 19.3 it was not installed as part of the other packages,
so the UI couldn't load the driver.
2020-02-24 19:53:08 +01:00
Gustavo Iñiguez Goia
4479bb5155 UI: exit cleanly if there's no QtSql driver available 2020-02-24 19:39:34 +01:00
Gustavo Iñiguez Goia
be89865cd1 fixed UI autostart on Cinnamon 2020-02-24 10:18:44 +01:00
Gustavo Iñiguez Goia
cad5339695 Fixed typo in ui/debian/postinst 2020-02-23 01:17:39 +01:00
Gustavo Iñiguez Goia
0f171f87d4 UI deb package improvements
* Purge files when using apt remove --purge
* Display a message to uninstall installed pkgs from pypi when invoking
apt remove
* link autostart .desktop file to /usr/share/applications instead of
copying it
2020-02-22 17:22:28 +01:00
Gustavo Iñiguez Goia
e3b0287e2e Merge UI fixes and enhancements from ui2.0 2020-02-22 01:00:24 +01:00
Gustavo Iñiguez Goia
401329171a Workaround for crashes parsing .desktop files
We parse .desktop files to get the icon of a program, but sometimes we
can't parse the Name translation due to unicode encoding problems.

Besides, on some distributions there're .desktop files without Exec=
line, so we also crash.

With this workaround we miss (mainly) the icon of a program, but at
least we won't crash.

It should help with #5.
2020-02-22 00:53:10 +01:00
Gustavo Iñiguez Goia
c4a9a21afa fixed HighDpi scaling
This should fix the warning message:
"Attribute Qt::AA_EnableHighDpiScaling must be set before
QCoreApplication is created."

Which should fix the small fonts reported by some users.
We may also need AA_UseHighDpiPixmaps.
2020-02-22 00:48:19 +01:00
Gustavo Iñiguez Goia
7f2f40b64d UI, stats: display dst_port on process details view 2020-02-21 00:57:11 +01:00
Gustavo Iñiguez Goia
189cffb00f Merge UI crash fixes and improvements 2020-02-20 00:27:45 +01:00
Gustavo Iñiguez Goia
8d88a4c13a Fixed advanced button height on some systems
Like Ubuntu Mate 16.04
2020-02-20 00:23:32 +01:00
Gustavo Iñiguez Goia
6ae1857538 Fixed prompt dialog exception and improved backward compatibility
Improved compatibility with old regex lib versions.
Fixed exception.
2020-02-19 23:14:25 +01:00
Gustavo Iñiguez Goia
b409eca0ed Fixed UI crash when configuring high dpi scaling on some systems
On LinuxMint18 even with a compatible PyQt lib, it crashes, so just
don't set this option.
2020-02-19 01:04:58 +01:00
Gustavo Iñiguez Goia
7ca2044f96 Merge UI License, MANIFEST.in and setup.py 2020-02-18 23:43:14 +01:00
Gustavo Iñiguez Goia
7eb0b6da30 UI: added license, long description and distribute icons 2020-02-18 23:40:07 +01:00
Gustavo Iñiguez Goia
9529830010 Improved UI deb package generation
This is highly experimental and not Debian compliant.
We'll keep improving it over time.
2020-02-18 23:30:56 +01:00
Gustavo Iñiguez Goia
d46d50a58d Bump version to v1.0.0rc3 2020-02-18 10:49:30 +01:00
Gustavo Iñiguez Goia
f88b78d5bb Improved UI debian package and bump version to rc3
Removed some dependencies, and ask to install via pip.
Added copyright file.
2020-02-18 10:47:17 +01:00
Gustavo Iñiguez Goia
19a5811f3b Merge UI fix to allow/deny second-level domains 2020-02-17 01:37:29 +01:00
Gustavo Iñiguez Goia
f696cf9141 Added option to allow/deny second level domains
Added option to allow or deny domains like 'examle.com', otherwise the
regex added a dot (.*\.example\.com) which didn't match the connection.
2020-02-17 01:31:37 +01:00
Gustavo Iñiguez Goia
d6180b8943 Merge UI regex patterns fix
As commented here #4
2020-02-15 01:02:45 +01:00
Gustavo Iñiguez Goia
7a7c1fb34b Fixed regex patterns shown in the UI combobox
Parse correctly DNS queries with the format 1.2.3.4 (x.host.com)
2020-02-15 00:33:43 +01:00
Gustavo Iñiguez Goia
3ec0ec60a9 Unified UI config files
Originally UI config file was saved to ~/.opensnitch/ui-config.json

Now those values are saved to ~/.config/opensnitch/settings.conf, along
with new ones.

Closes #3
2020-02-09 21:04:19 +01:00
Gustavo Iñiguez Goia
1e6d2c0b67 Unified UI config files
Originally UI config file was saved to ~/.opensnitch/ui-config.json

Now those values are saved to ~/.config/opensnitch/settings.conf, along
with new ones.

Closes #3
2020-02-09 20:56:26 +01:00
Gustavo Iñiguez Goia
6b77ce1346 Added UI alerts to warn about unanswered connections 2020-02-07 21:55:29 +01:00
Gustavo Iñiguez Goia
a5f8d5b25d Display an alert when a new connection is not answered
When the computer is on but you are away, you may miss some prompt
dialogs to allow or deny a connection. This way we warn the user about
something that happened, in order to review the UI.

Further work should maybe count and display the number of a connection,
and perhaps display a max of 5 different events.

It should also desirable to display a small number over the app icon.
2020-02-07 10:18:54 +01:00
Gustavo Iñiguez Goia
700b540432 Bump UI version to v1.0.0-rc2 2020-02-07 10:17:04 +01:00
Gustavo Iñiguez Goia
a6fa494789 Expand prompt dialog Dst IP Combo Box
It should span 2 columns
2020-02-07 00:16:14 +01:00
Gustavo Iñiguez Goia
8e6d901ae4 Added Action and Duration columns to GUI Rules tab 2020-02-07 00:15:31 +01:00
Gustavo Iñiguez Goia
8fc2c5d55f Added UI debian/ files for packaging
Work needed.
2020-02-06 23:54:36 +01:00
Gustavo Iñiguez Goia
7d330f24d9 Bump version to 1.0.0-rc2 2020-02-05 00:57:06 +01:00
Gustavo Iñiguez Goia
793afefbb1 Expand prompt dialog Dst IP Combo Box
It should span 2 columns
2020-02-05 00:54:40 +01:00
Gustavo Iñiguez Goia
b60b78a3b2 Added Action and Duration columns to GUI Rules tab 2020-02-05 00:47:39 +01:00
Gustavo Iñiguez Goia
695b5232f4 help stdeb to distribute resources files 2020-02-04 22:06:55 +01:00
Gustavo Iñiguez Goia
d0dbaa1d6e EnableHighDpiScaling only if qt version >= 5.6.0
It was addded in 5.6 version
https://doc-snapshots.qt.io/qtforpython/PySide2/QtCore/Qt.html
2019-12-03 23:11:50 +01:00
Gustavo Iñiguez Goia
77ec831119 Allow to view details of a rule/process from General tab
In the General tab, clicking on an item of the column Rule or Process open the
details about that item.
2019-12-03 22:33:03 +01:00