From: Petter Reinholdtsen Date: Tue, 20 May 2025 15:01:26 +0000 (+0000) Subject: Do not propose use of pip on Debian X-Git-Tag: archive/raspbian/1.6.9-3+rpi1~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e44cfb1b90e787eb39588b9326c37ed86006f7f7;p=opensnitch.git Do not propose use of pip on Debian Forwarded: not-needed Last-Update: 2025-04-19 Dependencies should be fetched from the curated Debian archive. Last-Update: 2025-04-19 Gbp-Pq: Name 2000-apt-not-pip.patch --- diff --git a/ui/opensnitch/dialogs/firewall_rule.py b/ui/opensnitch/dialogs/firewall_rule.py index afa85d2..92b45b4 100644 --- a/ui/opensnitch/dialogs/firewall_rule.py +++ b/ui/opensnitch/dialogs/firewall_rule.py @@ -377,7 +377,7 @@ The value must be in the format: VALUE/UNITS/TIME, for example: self._set_status_error( QC.translate( "firewall", - "Your protobuf version is incompatible, you need to install protobuf 3.8.0 or superior\n(pip3 install --ignore-installed protobuf==3.8.0)" + "Your protobuf version is incompatible, you need to install protobuf 3.8.0 or superior\n(apt install protobuf-api-32-0)" ) ) return False diff --git a/ui/opensnitch/dialogs/preferences.py b/ui/opensnitch/dialogs/preferences.py index bcdf176..a6527db 100644 --- a/ui/opensnitch/dialogs/preferences.py +++ b/ui/opensnitch/dialogs/preferences.py @@ -258,7 +258,7 @@ class PreferencesDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]): self._saved_theme = "" self.labelThemeError.setStyleSheet('color: red') self.labelThemeError.setVisible(True) - self.labelThemeError.setText(QC.translate("preferences", "Themes not available. Install qt-material: pip3 install qt-material")) + self.labelThemeError.setText(QC.translate("preferences", "Themes not available. Install qt-material: apt install python3-qt-material")) self.comboUITheme.setCurrentIndex(theme_idx) self._show_ui_density_widgets(theme_idx) diff --git a/ui/opensnitch/utils/__init__.py b/ui/opensnitch/utils/__init__.py index 4d81e48..62e3ee1 100644 --- a/ui/opensnitch/utils/__init__.py +++ b/ui/opensnitch/utils/__init__.py @@ -109,7 +109,7 @@ class Themes(): from qt_material import list_themes as qtmaterial_themes AVAILABLE = True except Exception: - print("Themes not available. Install qt-material if you want to change GUI's appearance: pip3 install qt-material.") + print("Themes not available. Install qt-material if you want to change GUI's appearance: apt install python3-qt-material.") @staticmethod def instance():