From d945404da4e6d18579aa0e24a3e2c77cecfa1f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliberk=20Sand=C4=B1k=C3=A7=C4=B1?= Date: Sat, 22 Jun 2024 18:29:11 +0300 Subject: [PATCH] add gtk3 configuration and update schema --- gtk3.nix | 30 ++++++++++++++++++ gtk4.nix | 1 + ...andikci.pardus-security-center.gschema.xml | 8 ++--- schemas/gschemas.compiled | Bin 296 -> 304 bytes 4 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 gtk3.nix diff --git a/gtk3.nix b/gtk3.nix new file mode 100644 index 0000000..848fea6 --- /dev/null +++ b/gtk3.nix @@ -0,0 +1,30 @@ +# gtk4.nix +# Install GTK4/Libadwaita and other dependencies for common Pardus Apps/GTK Development +let + pkgs = import {}; +in pkgs.mkShell { + packages = [ + pkgs.gtk3 + pkgs.gobject-introspection + pkgs.pkg-config + pkgs.libnotify + pkgs.libadwaita + pkgs.dbus + pkgs.apt + pkgs.libsoup + (pkgs.python3.withPackages (python-pkgs: [ + python-pkgs.pycairo + python-pkgs.pygobject3 + python-pkgs.pydbus + python-pkgs.dbus-python + python-pkgs.python-apt + python-pkgs.debian + ])) + ]; + shellHook = '' + bash $(pwd "$0")/schemas/compile-schemas.sh + export GSETTINGS_SCHEMAS_PATH="$(pwd "$0")/schemas:$GSETTINGS_SCHEMAS_PATH" + export GSETTINGS_SCHEMA_DIR="$(pwd "$0")/schemas:$GSETTINGS_SCHEMA_DIR" + export XDG_DATA_DIRS="$(pwd "$0")/schemas:$XDG_DATA_DIRS" + ''; +} \ No newline at end of file diff --git a/gtk4.nix b/gtk4.nix index 849d963..383294b 100644 --- a/gtk4.nix +++ b/gtk4.nix @@ -22,6 +22,7 @@ in pkgs.mkShell { ])) ]; shellHook = '' + bash $(pwd "$0")/schemas/compile-schemas.sh export GSETTINGS_SCHEMAS_PATH="$(pwd "$0")/schemas:$GSETTINGS_SCHEMAS_PATH" export GSETTINGS_SCHEMA_DIR="$(pwd "$0")/schemas:$GSETTINGS_SCHEMA_DIR" export XDG_DATA_DIRS="$(pwd "$0")/schemas:$XDG_DATA_DIRS" diff --git a/schemas/com.asandikci.pardus-security-center.gschema.xml b/schemas/com.asandikci.pardus-security-center.gschema.xml index 94c3f10..8564e6c 100644 --- a/schemas/com.asandikci.pardus-security-center.gschema.xml +++ b/schemas/com.asandikci.pardus-security-center.gschema.xml @@ -1,10 +1,10 @@ - - true - First Run - Did application run before or is this first run? + + false + Setup Completed + Did application set up necessary packages/configurations (like clamav, ufw etc.) ? \ No newline at end of file diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled index 8a383b74333563cfeecad2e960142caeb3858386..feca18f0f8341608d72c48d42924549553138f5c 100644 GIT binary patch delta 103 zcmZ3%w1H{Dl-L6av)P##7#QvVF+W2Y!v`S!6^IYi)^Yy_0uY-OD9*shz@Q1ltfCAI nAaM|zfx(AC2S^(LadB!%X@PEXer`cdYDsDeNRokJ;!Aq~?<^bx delta 95 zcmdnMw1R2El+gay>*p~sFfiN!VoruKh8IBkEf625t>gX=1RypmQ2YmwR%8USMHv`C f;vhBygAaoWkk$a=w9KO765XQGJfJA!#E

i31x^