Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package hyprpolkitagent for openSUSE:Factory
checked in at 2025-09-12 21:10:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hyprpolkitagent (Old)
and /work/SRC/openSUSE:Factory/.hyprpolkitagent.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hyprpolkitagent"
Fri Sep 12 21:10:41 2025 rev:2 rq:1304292 version:0.1.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/hyprpolkitagent/hyprpolkitagent.changes
2025-01-01 23:05:02.013377916 +0100
+++
/work/SRC/openSUSE:Factory/.hyprpolkitagent.new.1977/hyprpolkitagent.changes
2025-09-12 21:11:49.605037794 +0200
@@ -1,0 +2,39 @@
+Thu Sep 11 09:12:56 UTC 2025 - Marcus Rueckert <[email protected]>
+
+- Add requires for the qml files manually since the files are
+ compiled into the binary and our automatic Requires generator
+ wont work. Thank you to Fabian Vogt
+
+-------------------------------------------------------------------
+Wed Sep 10 20:14:12 UTC 2025 - Marcus Rueckert <[email protected]>
+
+- Update to 0.1.3
+ - fix D-bus name by @stradus64 in #30
+ - Rename service-file to 'org.hyprland.hyprpolkitagent.service'
+ by @golgor in #35
+- Changes from 0.1.2 After a while, an update with all the good
+ stuff.
+
+ - Notes for packagers
+ - qqc2-desktop-style dep is now dropped, replaced with
+ hyprland-qt-support
+ - Fixes
+ - qml: adjust dialog size to message length
+ - MRs
+ - Add [install] section to hyprpolkitagent.service by @izmyname
+ in #3
+ - Fix: Resolve deprecated QML syntax in main.qml by @raexera in
+ #14
+ - Add support for Numpad Enter key in authentication by
+ @Hcode00 in #15
+ - chore: replace deprecated syntax by @nnyyxxxx in #18
+ - fix: don't create duplicate service file by @nnyyxxxx in #17
+ - dbus: add proper ini-type config file by @regul4rj0hn in #22
+ - nix: move to hyprland-qt-support by @outfoxxed in #25
+- drop obsolete patches
+ - Add_install_section.patch
+ - no-kde-dependency.patch
+- rename dbus service from hyprpolkitagent.service to
+ org.hyprland.hyprpolkitagent.service
+
+-------------------------------------------------------------------
Old:
----
Add_install_section.patch
hyprpolkitagent-0.1.1.tar.xz
no-kde-dependency.patch
New:
----
hyprpolkitagent-0.1.3.tar.xz
----------(Old B)----------
Old:- drop obsolete patches
- Add_install_section.patch
- no-kde-dependency.patch
Old: - Add_install_section.patch
- no-kde-dependency.patch
- rename dbus service from hyprpolkitagent.service to
----------(Old E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ hyprpolkitagent.spec ++++++
--- /var/tmp/diff_new_pack.c5aww5/_old 2025-09-12 21:11:50.433072709 +0200
+++ /var/tmp/diff_new_pack.c5aww5/_new 2025-09-12 21:11:50.433072709 +0200
@@ -1,7 +1,7 @@
#
# spec file for package hyprpolkitagent
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,22 +17,22 @@
Name: hyprpolkitagent
-Version: 0.1.1
+Version: 0.1.3
Release: 0
Summary: A Qt/QML-based polkit authentication agent for Hyprland
License: BSD-3-Clause
URL: https://wiki.hyprland.org/Hypr-Ecosystem/hyprpolkitagent/
Source0: %{name}-%{version}.tar.xz
-# PATCH-FIX-UPSTREAM https://github.com/hyprwm/hyprpolkitagent/pull/19
-Patch0: no-kde-dependency.patch
-# PATCH-FIX-UPSTREAM https://github.com/hyprwm/hyprpolkitagent/pull/3
-Patch1: Add_install_section.patch
BuildRequires: cmake
-BuildRequires: pkgconfig(hyprutils)
-BuildRequires: pkgconfig(polkit-qt6-1)
+BuildRequires: cmake(Qt6QuickControls2Impl)
BuildRequires: pkgconfig(Qt6Quick)
BuildRequires: pkgconfig(Qt6QuickControls2)
BuildRequires: pkgconfig(Qt6Widgets)
+BuildRequires: pkgconfig(hyprutils)
+BuildRequires: pkgconfig(polkit-qt6-1)
+Requires: qt6qmlimport(QtQuick)
+Requires: qt6qmlimport(QtQuick.Controls)
+Requires: qt6qmlimport(QtQuick.Layouts)
%description
hyprpolkitagent is a polkit authentication daemon. It is required for GUI
@@ -54,5 +54,5 @@
%doc README.md
%{_userunitdir}/hyprpolkitagent.service
%{_libexecdir}/hyprpolkitagent
-%{_datadir}/dbus-1/services/hyprpolkitagent.service
+%{_datadir}/dbus-1/services/org.hyprland.hyprpolkitagent.service
++++++ hyprpolkitagent-0.1.1.tar.xz -> hyprpolkitagent-0.1.3.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/.envrc
new/hyprpolkitagent-0.1.3/.envrc
--- old/hyprpolkitagent-0.1.1/.envrc 1970-01-01 01:00:00.000000000 +0100
+++ new/hyprpolkitagent-0.1.3/.envrc 2025-07-31 15:53:09.000000000 +0200
@@ -0,0 +1 @@
+use flake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/.github/workflows/nix.yml
new/hyprpolkitagent-0.1.3/.github/workflows/nix.yml
--- old/hyprpolkitagent-0.1.1/.github/workflows/nix.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/hyprpolkitagent-0.1.3/.github/workflows/nix.yml 2025-07-31
15:53:09.000000000 +0200
@@ -0,0 +1,48 @@
+name: Build
+
+on: [push, pull_request, workflow_dispatch]
+jobs:
+ nix:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install Nix
+ uses: nixbuild/nix-quick-install-action@v31
+ with:
+ nix_conf: |
+ keep-env-derivations = true
+ keep-outputs = true
+
+ - name: Restore and save Nix store
+ uses: nix-community/cache-nix-action@v6
+ with:
+ # restore and save a cache using this key
+ primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix',
'**/flake.lock') }}
+ # if there's no cache hit, restore a cache by this prefix
+ restore-prefixes-first-match: nix-${{ runner.os }}-
+ # collect garbage until the Nix store size (in bytes) is at most this
number
+ # before trying to save a new cache
+ # 1G = 1073741824
+ gc-max-store-size-linux: 1G
+ # do purge caches
+ purge: true
+ # purge all versions of the cache
+ purge-prefixes: nix-${{ runner.os }}-
+ # created more than this number of seconds ago
+ purge-created: 0
+ # or, last accessed more than this number of seconds ago
+ # relative to the start of the `Post Restore and save Nix store` phase
+ purge-last-accessed: 0
+ # except any version with the key that is the same as the `primary-key`
+ purge-primary-key: never
+
+ # not needed (yet)
+ # - uses: cachix/cachix-action@v12
+ # with:
+ # name: hyprland
+ # authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
+
+ - name: Build
+ run: nix build --print-build-logs --keep-going
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/CMakeLists.txt
new/hyprpolkitagent-0.1.3/CMakeLists.txt
--- old/hyprpolkitagent-0.1.1/CMakeLists.txt 2024-10-16 17:00:37.000000000
+0200
+++ new/hyprpolkitagent-0.1.3/CMakeLists.txt 2025-07-31 15:53:09.000000000
+0200
@@ -50,9 +50,12 @@
set(LIBEXECDIR ${CMAKE_INSTALL_FULL_LIBEXECDIR})
configure_file(assets/hyprpolkitagent-service.in hyprpolkitagent.service @ONLY)
+configure_file(assets/hyprpolkitagent-dbus.in hyprpolkitagent-dbus.service
@ONLY)
-install(TARGETS hyprpolkitagent DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
-install(FILES ${CMAKE_BINARY_DIR}/hyprpolkitagent.service
- DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/dbus-1/services")
+install(TARGETS hyprpolkitagent
+ DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
install(FILES ${CMAKE_BINARY_DIR}/hyprpolkitagent.service
DESTINATION "lib/systemd/user")
+install(FILES ${CMAKE_BINARY_DIR}/hyprpolkitagent-dbus.service
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/services
+ RENAME org.hyprland.hyprpolkitagent.service)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/VERSION
new/hyprpolkitagent-0.1.3/VERSION
--- old/hyprpolkitagent-0.1.1/VERSION 2024-10-16 17:00:37.000000000 +0200
+++ new/hyprpolkitagent-0.1.3/VERSION 2025-07-31 15:53:09.000000000 +0200
@@ -1 +1 @@
-0.1.0
\ No newline at end of file
+0.1.3
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/assets/hyprpolkitagent-dbus.in
new/hyprpolkitagent-0.1.3/assets/hyprpolkitagent-dbus.in
--- old/hyprpolkitagent-0.1.1/assets/hyprpolkitagent-dbus.in 1970-01-01
01:00:00.000000000 +0100
+++ new/hyprpolkitagent-0.1.3/assets/hyprpolkitagent-dbus.in 2025-07-31
15:53:09.000000000 +0200
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.hyprland.hyprpolkitagent
+Exec=@LIBEXECDIR@/hyprpolkitagent
+SystemdService=hyprpolkitagent.service
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/hyprpolkitagent-0.1.1/assets/hyprpolkitagent-service.in
new/hyprpolkitagent-0.1.3/assets/hyprpolkitagent-service.in
--- old/hyprpolkitagent-0.1.1/assets/hyprpolkitagent-service.in 2024-10-16
17:00:37.000000000 +0200
+++ new/hyprpolkitagent-0.1.3/assets/hyprpolkitagent-service.in 2025-07-31
15:53:09.000000000 +0200
@@ -8,4 +8,7 @@
ExecStart=@LIBEXECDIR@/hyprpolkitagent
Slice=session.slice
TimeoutStopSec=5sec
-Restart=on-failure
\ No newline at end of file
+Restart=on-failure
+
+[Install]
+WantedBy=graphical-session.target
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/flake.lock
new/hyprpolkitagent-0.1.3/flake.lock
--- old/hyprpolkitagent-0.1.1/flake.lock 1970-01-01 01:00:00.000000000
+0100
+++ new/hyprpolkitagent-0.1.3/flake.lock 2025-07-31 15:53:09.000000000
+0200
@@ -0,0 +1,145 @@
+{
+ "nodes": {
+ "hyprland-qt-support": {
+ "inputs": {
+ "hyprlang": "hyprlang",
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "systems": [
+ "systems"
+ ]
+ },
+ "locked": {
+ "lastModified": 1749154592,
+ "narHash": "sha256-DO7z5CeT/ddSGDEnK9mAXm1qlGL47L3VAHLlLXoCjhE=",
+ "owner": "hyprwm",
+ "repo": "hyprland-qt-support",
+ "rev": "4c8053c3c888138a30c3a6c45c2e45f5484f2074",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hyprwm",
+ "repo": "hyprland-qt-support",
+ "type": "github"
+ }
+ },
+ "hyprlang": {
+ "inputs": {
+ "hyprutils": "hyprutils",
+ "nixpkgs": [
+ "hyprland-qt-support",
+ "nixpkgs"
+ ],
+ "systems": [
+ "hyprland-qt-support",
+ "systems"
+ ]
+ },
+ "locked": {
+ "lastModified": 1749145882,
+ "narHash": "sha256-qr0KXeczF8Sma3Ae7+dR2NHhvG7YeLBJv19W4oMu6ZE=",
+ "owner": "hyprwm",
+ "repo": "hyprlang",
+ "rev": "1bfb84f54d50c7ae6558c794d3cfd5f6a7e6e676",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hyprwm",
+ "repo": "hyprlang",
+ "type": "github"
+ }
+ },
+ "hyprutils": {
+ "inputs": {
+ "nixpkgs": [
+ "hyprland-qt-support",
+ "hyprlang",
+ "nixpkgs"
+ ],
+ "systems": [
+ "hyprland-qt-support",
+ "hyprlang",
+ "systems"
+ ]
+ },
+ "locked": {
+ "lastModified": 1749135356,
+ "narHash": "sha256-Q8mAKMDsFbCEuq7zoSlcTuxgbIBVhfIYpX0RjE32PS0=",
+ "owner": "hyprwm",
+ "repo": "hyprutils",
+ "rev": "e36db00dfb3a3d3fdcc4069cb292ff60d2699ccb",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hyprwm",
+ "repo": "hyprutils",
+ "type": "github"
+ }
+ },
+ "hyprutils_2": {
+ "inputs": {
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "systems": [
+ "systems"
+ ]
+ },
+ "locked": {
+ "lastModified": 1749135356,
+ "narHash": "sha256-Q8mAKMDsFbCEuq7zoSlcTuxgbIBVhfIYpX0RjE32PS0=",
+ "owner": "hyprwm",
+ "repo": "hyprutils",
+ "rev": "e36db00dfb3a3d3fdcc4069cb292ff60d2699ccb",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hyprwm",
+ "repo": "hyprutils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1748929857,
+ "narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "c2a03962b8e24e669fb37b7df10e7c79531ff1a4",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "hyprland-qt-support": "hyprland-qt-support",
+ "hyprutils": "hyprutils_2",
+ "nixpkgs": "nixpkgs",
+ "systems": "systems"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1689347949,
+ "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
+ "owner": "nix-systems",
+ "repo": "default-linux",
+ "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default-linux",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/flake.nix
new/hyprpolkitagent-0.1.3/flake.nix
--- old/hyprpolkitagent-0.1.1/flake.nix 1970-01-01 01:00:00.000000000 +0100
+++ new/hyprpolkitagent-0.1.3/flake.nix 2025-07-31 15:53:09.000000000 +0200
@@ -0,0 +1,51 @@
+{
+ description = "A polkit authentication agent written in QT/QML";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ systems.url = "github:nix-systems/default-linux";
+
+ hyprutils = {
+ url = "github:hyprwm/hyprutils";
+ inputs.nixpkgs.follows = "nixpkgs";
+ inputs.systems.follows = "systems";
+ };
+
+ hyprland-qt-support = {
+ url = "github:hyprwm/hyprland-qt-support";
+ inputs.nixpkgs.follows = "nixpkgs";
+ inputs.systems.follows = "systems";
+ };
+ };
+
+ outputs = {
+ self,
+ nixpkgs,
+ systems,
+ ...
+ } @ inputs: let
+ inherit (nixpkgs) lib;
+ eachSystem = lib.genAttrs (import systems);
+ pkgsFor = eachSystem (
+ system:
+ import nixpkgs {
+ localSystem = system;
+ overlays = [self.overlays.default];
+ }
+ );
+ in {
+ overlays = import ./nix/overlays.nix {inherit inputs self lib;};
+
+ packages = eachSystem (system: {
+ default = self.packages.${system}.hyprpolkitagent;
+ inherit (pkgsFor.${system}) hyprpolkitagent;
+ });
+
+ devShells = eachSystem (system: {
+ default = import ./nix/shell.nix {
+ pkgs = pkgsFor.${system};
+ inherit (pkgsFor.${system}) hyprpolkitagent;
+ };
+ });
+ };
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/nix/default.nix
new/hyprpolkitagent-0.1.3/nix/default.nix
--- old/hyprpolkitagent-0.1.1/nix/default.nix 1970-01-01 01:00:00.000000000
+0100
+++ new/hyprpolkitagent-0.1.3/nix/default.nix 2025-07-31 15:53:09.000000000
+0200
@@ -0,0 +1,52 @@
+{
+ lib,
+ stdenv,
+ cmake,
+ pkg-config,
+ hyprutils,
+ hyprland-qt-support,
+ kdePackages,
+ polkit,
+ qt6,
+ version ? "0",
+}: let
+ inherit (lib.sources) cleanSource cleanSourceWith;
+ inherit (lib.strings) hasSuffix;
+in
+ stdenv.mkDerivation {
+ pname = "hyprpolkitagent";
+ inherit version;
+
+ src = cleanSourceWith {
+ filter = name: _type: let
+ baseName = baseNameOf (toString name);
+ in
+ ! (hasSuffix ".nix" baseName);
+ src = cleanSource ../.;
+ };
+
+ nativeBuildInputs = [
+ cmake
+ pkg-config
+ qt6.wrapQtAppsHook
+ ];
+
+ buildInputs = [
+ hyprutils
+ hyprland-qt-support
+ polkit
+ kdePackages.polkit-qt-1
+ qt6.qtbase
+ qt6.qtsvg
+ qt6.qtwayland
+ ];
+
+ meta = {
+ description = "A polkit authentication agent written in QT/QML";
+ homepage = "https://github.com/hyprwm/hyprpolkitagent";
+ license = lib.licenses.bsd3;
+ maintainers = [lib.maintainers.fufexan];
+ mainProgram = "hyprpolkitagent";
+ platforms = lib.platforms.linux;
+ };
+ }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/nix/overlays.nix
new/hyprpolkitagent-0.1.3/nix/overlays.nix
--- old/hyprpolkitagent-0.1.1/nix/overlays.nix 1970-01-01 01:00:00.000000000
+0100
+++ new/hyprpolkitagent-0.1.3/nix/overlays.nix 2025-07-31 15:53:09.000000000
+0200
@@ -0,0 +1,26 @@
+{
+ inputs,
+ self,
+ lib,
+}: let
+ mkDate = longDate: (lib.concatStringsSep "-" [
+ (builtins.substring 0 4 longDate)
+ (builtins.substring 4 2 longDate)
+ (builtins.substring 6 2 longDate)
+ ]);
+ date = mkDate (self.lastModifiedDate or "19700101");
+ version = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
+in {
+ default = self.overlays.hyprpolkitagent;
+
+ hyprpolkitagent = lib.composeManyExtensions [
+ inputs.hyprutils.overlays.default
+ inputs.hyprland-qt-support.overlays.default
+ (final: prev: {
+ hyprpolkitagent = final.callPackage ./. {
+ stdenv = final.gcc15Stdenv;
+ version = "${version}+date=${date}_${self.shortRev or "dirty"}";
+ };
+ })
+ ];
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/nix/shell.nix
new/hyprpolkitagent-0.1.3/nix/shell.nix
--- old/hyprpolkitagent-0.1.1/nix/shell.nix 1970-01-01 01:00:00.000000000
+0100
+++ new/hyprpolkitagent-0.1.3/nix/shell.nix 2025-07-31 15:53:09.000000000
+0200
@@ -0,0 +1,26 @@
+{
+ pkgs ? import <nixpkgs> {},
+ hyprpolkitagent ? pkgs.callPackage ./default.nix {},
+ ...
+}: pkgs.mkShell {
+ inputsFrom = [ hyprpolkitagent ];
+ nativeBuildInputs = [ pkgs.clang-tools ];
+
+ shellHook = let
+ inherit (pkgs.lib.strings) concatMapStringsSep;
+ qtLibPath = f: concatMapStringsSep ":" f (with pkgs.qt6; [
+ qtbase
+ qtdeclarative
+ qtwayland
+ pkgs.hyprland-qt-support
+ ]);
+ in ''
+ # Add Qt-related environment variables.
+ export QT_PLUGIN_PATH=${qtLibPath (p: "${p}/lib/qt-6/plugins")}
+ export QML2_IMPORT_PATH=${qtLibPath (p: "${p}/lib/qt-6/qml")}
+
+ # Generate compile_commands.json
+ CMAKE_EXPORT_COMPILE_COMMANDS=1 cmake -S . -B ./build
+ ln -s build/compile_commands.json .
+ '';
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/qml/main.qml
new/hyprpolkitagent-0.1.3/qml/main.qml
--- old/hyprpolkitagent-0.1.1/qml/main.qml 2024-10-16 17:00:37.000000000
+0200
+++ new/hyprpolkitagent-0.1.3/qml/main.qml 2025-07-31 15:53:09.000000000
+0200
@@ -7,11 +7,12 @@
property var windowWidth: Math.round(fontMetrics.height * 32.2856)
property var windowHeight: Math.round(fontMetrics.height * 13.9528)
+ property var heightSafeMargin: 15
- maximumWidth: windowWidth
- maximumHeight: windowHeight
- minimumWidth: windowWidth
- minimumHeight: windowHeight
+ minimumWidth: Math.max(windowWidth, mainLayout.Layout.minimumWidth) +
mainLayout.anchors.margins * 2
+ minimumHeight: Math.max(windowHeight, mainLayout.Layout.minimumHeight) +
mainLayout.anchors.margins * 2 + heightSafeMargin
+ maximumWidth: minimumWidth
+ maximumHeight: minimumHeight
visible: true
onClosing: {
hpa.setResult("fail");
@@ -28,6 +29,8 @@
}
Item {
+ id: mainLayout
+
anchors.fill: parent
Keys.onEscapePressed: (e) => {
hpa.setResult("fail");
@@ -35,6 +38,9 @@
Keys.onReturnPressed: (e) => {
hpa.setResult("auth:" + passwordField.text);
}
+ Keys.onEnterPressed: (e) => {
+ hpa.setResult("auth:" + passwordField.text);
+ }
ColumnLayout {
anchors.fill: parent
@@ -46,6 +52,9 @@
font.pointSize: Math.round(fontMetrics.height * 1.05)
text: "Authenticating for " + hpa.getUser()
Layout.alignment: Qt.AlignHCenter
+ Layout.maximumWidth: parent.width
+ elide: Text.ElideRight
+ wrapMode: Text.WordWrap
}
HSeparator {
@@ -56,6 +65,9 @@
Label {
color: system.windowText
text: hpa.getMessage()
+ Layout.maximumWidth: parent.width
+ elide: Text.ElideRight
+ wrapMode: Text.WordWrap
}
TextField {
@@ -71,10 +83,10 @@
Connections {
target: hpa
- onFocusField: () => {
+ function onFocusField() {
passwordField.focus = true;
}
- onBlockInput: (block) => {
+ function onBlockInput(block) {
passwordField.readOnly = block;
if (!block) {
passwordField.focus = true;
@@ -96,7 +108,7 @@
Connections {
target: hpa
- onSetErrorString: (e) => {
+ function onSetErrorString(e) {
errorLabel.text = e;
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hyprpolkitagent-0.1.1/src/core/Agent.cpp
new/hyprpolkitagent-0.1.3/src/core/Agent.cpp
--- old/hyprpolkitagent-0.1.1/src/core/Agent.cpp 2024-10-16
17:00:37.000000000 +0200
+++ new/hyprpolkitagent-0.1.3/src/core/Agent.cpp 2025-07-31
15:53:09.000000000 +0200
@@ -2,6 +2,8 @@
#include <polkitagent/polkitagent.h>
#include <print>
+#include <QtCore/QString>
+using namespace Qt::Literals::StringLiterals;
#include "Agent.hpp"
#include "../QMLIntegration.hpp"
@@ -60,11 +62,11 @@
authState.qmlIntegration = new CQMLIntegration();
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE"))
- QQuickStyle::setStyle("org.kde.desktop");
+ QQuickStyle::setStyle("org.hyprland.style");
authState.qmlEngine = new QQmlApplicationEngine();
authState.qmlEngine->rootContext()->setContextProperty("hpa",
authState.qmlIntegration);
- authState.qmlEngine->load(QUrl{u"qrc:/qt/qml/hpa/qml/main.qml"_qs});
+ authState.qmlEngine->load(QUrl{u"qrc:/qt/qml/hpa/qml/main.qml"_s});
authState.qmlIntegration->focusField();
}