Commit graph

12 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
5dd4ef06bb
ui: allow to use multiple protobuffer versions
Protobuffers compiled with protobuf < 3.20.0 are incompatible with
protobuf >= 4.0.0:
https://github.com/evilsocket/opensnitch/wiki/GUI-known-problems#gui-does-not-show-up

This has been a source of problems for some users (#1214, #647), and
in some distributions, previous protobuffer does no longer work due to
incompatibility with the protobuf package version installed
(OpenSuse Tumbleweed).

So in order to solve this issue, we provide several protobuffers,
for old and new protobuf versions:
proto/ui_pb2* for protobuf >= 4.0.0
proto/pre3200/ui_pb2* for protobuf >= 3.6.0 and < 3.20.0

To avoid import errors, each protobuffer must be placed in its own
directory, and the name of the protobuffer files must be named with
the syntax <prefix>_pb2.py/<prefix>_pb2_grpc.py:
  ui_pb2.py and ui_pb2_grpc.py

The default compiled protobuffer will be opensnitch/proto/ui_*.py
instead of opensnitch/ui_*.py
2025-01-03 14:48:35 +01:00
Steven Hollingsworth
de559dccf8
Changed import ui_pb2 from global to relative 2021-06-18 12:54:17 -07:00
themighty1
be0c051205 makefile:
rename, remove unused targets
    trigger targets only when relevant files actually are changed
git:
    do not track files which are generated during make
github actions fix to not rely on a pre-built ui.pb.go
2021-02-13 18:48:49 +03:00
Gustavo Iñiguez Goia
4c855eff91 ui: added translations to the installation steps 2021-01-03 00:32:12 +01:00
Gustavo Iñiguez Goia
f751dc13c6 removed sudo from Makefiles
Documentation must be updated to indicate when to use sudo.

closes #291
2020-12-11 23:42:47 +01:00
Phorkoz
e7b853f7a2
Make upgrading the UI possible on code changes.
UI
2019-10-30 20:11:26 -05:00
evilsocket
ec6ecea8b4
UI is now using python3 2018-04-11 15:35:29 +02:00
evilsocket
4e820db6c7
install rules and systemd integration (closes #118) 2018-04-10 19:16:29 +02:00
evilsocket
ef96a0ae1a
misc: small fix or general refactoring i did not bother commenting 2018-04-08 21:06:20 +02:00
evilsocket
11c19d2c50
misc: small fix or general refactoring i did not bother commenting 2018-04-07 15:52:58 +02:00
evilsocket
7e2f6d6a2c
misc: small fix or general refactoring i did not bother commenting 2018-04-06 18:00:10 +02:00
evilsocket
f2f313c0bf
misc: small fix or general refactoring i did not bother commenting 2018-04-06 13:55:03 +02:00