Commit graph

363 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
c8d1161061 added dialog to inspect details of a process in realtime (procfs)
New dialog added to display details of a process in realtime, gathered
from ProcFS.
Process tab -> double click on an app -> click on the button with the
search icon.

We have also improved the discovery of apps icons and names. It should
work better on systems where the DE is not properly configured.

Tested, but not bulletproof, still in beta.
2020-11-16 17:09:52 +01:00
Alex Ortiz de Guinea
8c715e7af7 Edit strings for UI 2020-11-13 16:18:15 +00:00
Gustavo Iñiguez Goia
6a8670c3b6 pkgs: versions increased 2020-11-09 23:06:51 +01:00
Gustavo Iñiguez Goia
c666abe5f9 apps version increased 2020-11-05 21:50:37 +01:00
Gustavo Iñiguez Goia
8c3996ed37
Merge pull request #81 from sadyqowl1560/main
Add missing icon which can abort the building
2020-11-05 21:09:49 +01:00
Gustavo Iñiguez Goia
aa18d184a2 Merge branch 'ui2.0' into main 2020-11-02 10:29:28 +01:00
Gustavo Iñiguez Goia
907e73863a ui: configure Server Address and LogFile from the GUI 2020-11-02 01:46:54 +01:00
sadyqowl1560
960d404272 Add missing icon which can abort the building 2020-10-29 17:14:05 +02:00
Gustavo Iñiguez Goia
61900179fc ui: fixed showing clean stats button 2020-10-28 14:22:36 +01:00
Gustavo Iñiguez Goia
832f4fdc5c ui: allow to clear stats 2020-10-28 00:25:14 +01:00
Gustavo Iñiguez Goia
9aa100fe3d ui: improved showing/hiding stats window
The stats window was not being shown correctly when it was maximized and
minimized.

Now we cover all the possible cases (I hope).

closes #77
2020-10-27 23:57:43 +01:00
Gustavo Iñiguez Goia
5e5a586b18 ui: improved GUI deb packages
Use debconf to ask questions.

This allow us to:
 - install deb packages using apt frontends (noninteractive, readline,
  etc).
 - display the questions on graphical installers like Gdebi.

closes #75
2020-10-27 23:48:48 +01:00
Gustavo Iñiguez Goia
7b28a398ea ui: changed General tab clear icon 2020-10-27 02:25:07 +01:00
Gustavo Iñiguez Goia
38bfb58442 ui: improved preferences dialog saving notification 2020-10-27 01:59:45 +01:00
Gustavo Iñiguez Goia
8abf2abece ui: fixed getting pop-up timeout default value 2020-10-27 01:45:14 +01:00
Gustavo Iñiguez Goia
64ac5f0f73 Merge branch 'ui2.0' into main 2020-10-27 00:35:00 +01:00
Gustavo Iñiguez Goia
713e4ff1d5 ui: save only daemon's configuration known fields
The daemon may have fields that the GUI don't understand, so save only
the part of the configuration we know.
2020-10-26 23:53:23 +01:00
Gustavo Iñiguez Goia
6522a94937 ui: make pop-up dialogs optionals
If the default timeout is set to 0, do not display the pop-up dialog and
apply the default configured actions.

Fixed typo in preferences dialog.
2020-10-25 23:56:10 +01:00
Gustavo Iñiguez Goia
b02e3fa2f0 Merge branch 'ui2.0' into main 2020-10-25 01:20:15 +02:00
Gustavo Iñiguez Goia
d815d4c2cc ui, preferences: display configuration result
Display if the configuration sent to a node has been applied correctly.
2020-10-25 01:06:10 +02:00
Gustavo Iñiguez Goia
1c3a9d1ba4 ui: fixed viewing stats of a node
clicking from the General tab
2020-10-24 22:19:00 +02:00
Gustavo Iñiguez Goia
7724556a36 Merge branch 'ui2.0' into main 2020-10-23 23:44:33 +02:00
Gustavo Iñiguez Goia
6637861f33 ui, ruleseditor: set and load case-sensitive field correctly 2020-10-23 23:36:39 +02:00
Gustavo Iñiguez Goia
279092d73d Merge branch 'ui2.0' into main 2020-10-23 01:21:19 +02:00
Gustavo Iñiguez Goia
ab46cca43a added priority and case-sensitive rules, fixes
nodes:
 - added WA for backward compatibility with older protobuf libs.

stats:
 - added sensitive and priority rules columns
 - fixed selecting a node from the General tab.
 - if DstHost is empty, display the IP instead.
 - Hosts tab nw only lists hosts.

rules editor:
 - added options to define if a rule has precedence and if it's
   case-sensitive (for all fields for now). Default is case-insensitive.

closes #36
2020-10-23 01:04:49 +02:00
Gustavo Iñiguez Goia
e919bd557c ui: refresh rules list after rules deletion
It was not being refresh properly. Mentioned here #28#issuecomment-633700103
2020-10-19 23:51:53 +02:00
Gustavo Iñiguez Goia
d3d8aa9029 ui: set an alternative theme if the default one fails
In some scenarios some button icons are not available.

In these cases we'll first try to use the fallback theme, f it's
configured. If the buttons are still not available, list the themes
installed, and determine which one has the buttons we need, then use it.

If all this fails, then display a warning message to the user.

closes #53
2020-10-19 23:12:01 +02:00
Gustavo Iñiguez Goia
3f3e2d6de0 ui: added backward compatibility with old protobuf package 2020-10-19 19:03:04 +02:00
Gustavo Iñiguez Goia
0921ca46e3 ui,systray icon: display IP if dst_host is empty 2020-10-19 19:01:19 +02:00
Gustavo Iñiguez Goia
c5da68d8e1 ui: if dst_host is empty, display the IP
Destination host field can be empty sometimes. In these cases display
the IP.
2020-10-19 18:57:26 +02:00
Gustavo Iñiguez Goia
1f6a2db964 ui: don't set the focus on the action buttons
Sometimes you can deny/allow a connection unintentionally while typing.
Now the focus is set to the "+" button, and you can jump to the deny or
allow button with the arrow keys.

Issue #58.
2020-10-14 23:35:05 +02:00
Gustavo Iñiguez Goia
bc26ca4afd ui deb pkg: improved post install
Do not install .desktop file if /home/$directory is not the home of a
user: #57.
Avoid confusing users by avoiding noisy errors (#57).
2020-09-29 02:16:33 +02:00
Gustavo Iñiguez Goia
7deb2f3212 ui: fixed python3 system libs path on OpenSuse
/usr/lib/python3/dist-packages/ was missing on OpenSuse TumbleWeed.
Maybe it's not the best solution, but solves the problem for now.

Reported by zaggynl here #59.
2020-09-26 01:13:32 +02:00
Gustavo Iñiguez Goia
7a7341b3e4 python deps: added protobuf, pyqt>=5.6 2020-09-21 01:03:01 +02:00
Gustavo Iñiguez Goia
f9bb823e65 Bump GUI version to 1.0.1
Fixes a crash when clicking on some columns of the General tab, shortens
autogenerated rules names and adds the literal dst host the popup combo
box.
2020-07-29 01:17:43 +02:00
Gustavo Iñiguez Goia
eff9c5c262 Merge branch 'ui2.0' into main 2020-07-28 22:57:26 +02:00
Gustavo Iñiguez Goia
d137a50d41 check GUI and daemon versions granularly
Do not display the warning dialog about diferent versions
(daemon<->GUI), if we only have relesed fixes or minor changes.
2020-07-28 22:38:53 +02:00
Gustavo Iñiguez Goia
dba0c83ced fixed crash when clicking on a General tab wrong column
Reported here: https://github.com/gustavo-iniguez-goya/opensnitch/issues/38#issuecomment-665006899
2020-07-28 18:23:21 +02:00
Gustavo Iñiguez Goia
ace124ad6a added the host to the options of the pop-up dialog
The host to where a process is connecting to was missing in the options
list, when the connection to allow was a query to resolve the domain
name. Reported here: #48

Also added the connection port to the rule name.
2020-07-20 23:59:14 +02:00
Gustavo Iñiguez Goia
9eb589a3ea v1.0.0 release
Current version is stable enough (based on users' feedback) to get it out
of the release candidate state. OpenSnitch works and is usable.

There's a lot of work yet to do, so let's start from a fresh and shiny
release number.
2020-07-16 00:48:32 +02:00
Gustavo Iñiguez Goia
97139ecc6b UI: shorten default rules name
Default rules name can be extremely long when the rule is of type list.
It still will be in some cases, but should work in most cases.

closes #37
2020-06-26 22:47:44 +02:00
Gustavo Iñiguez Goia
8494bfd982 UI: changed preferences dialog title 2020-06-26 21:53:17 +02:00
Gustavo Iñiguez Goia
7c5e324bc9 UI: force to bring the allow/deny pop-up to the front
This solves an issue where the pop-up was only displayed on the same
screen/desktop/workspace where the main window was.
2020-06-25 22:38:09 +02:00
Gustavo Iñiguez Goia
0d80af45c2 UI: force to bring the allow/deny pop-up to the front
This solves an issue where the pop-up was only displayed on the same
screen/desktop/workspace where the main window was.
2020-06-25 18:52:29 +02:00
Gustavo Iñiguez Goia
714aa311a0 Bump version to v1.0.0rc11 2020-06-24 00:41:36 +02:00
Gustavo Iñiguez Goia
4a99548ef3 Merge branch 'ui2.0' into main 2020-06-23 02:20:44 +02:00
Gustavo Iñiguez Goia
de00e89302 UI: set pop-up action buttons focus
Set the focus of the action buttons deny/allow, based on the configured
action.
2020-06-23 02:09:35 +02:00
Gustavo Iñiguez Goia
db02c4a394 UI: improved general tab fields filtering 2020-06-23 02:04:25 +02:00
Gustavo Iñiguez Goia
0af606d348 UI: fixed columns sorting after restoring settings
When restoring columns size state, the clicked events of the headers
(qtableview) were being fired, so the sort order was being not
respected.

Ensure also that changes to the general tab only affects to that tab.
2020-06-23 00:48:48 +02:00
Gustavo Iñiguez Goia
fe639887f0 UI: save settings on hiding stats window
Since we show and hide the stats window just by clicking on the systray
icon, the window is not closed, or at least the closEvent() is not being
fired, so the settings were not being saved.
2020-06-22 17:03:08 +02:00