Balló György pushed to branch main at Arch Linux / Packaging / Packages / 
junction


Commits:
0ccffefa by Balló György at 2025-03-25T01:57:46+01:00
upgpkg: 1.8-4: Fix initialization with GTK 4.18

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + junction-gtk-init.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = junction
        pkgdesc = Application chooser to open files and links
        pkgver = 1.8
-       pkgrel = 3
+       pkgrel = 4
        url = https://apps.gnome.org/Junction/
        arch = any
        license = GPL-3.0-only
@@ -19,7 +19,9 @@ pkgbase = junction
        depends = libportal-gtk4
        source = git+https://github.com/sonnyp/Junction.git#tag=v1.8
        source = git+https://github.com/sonnyp/troll.git
+       source = junction-gtk-init.patch
        b2sums = 
3112b4ef690933fc57260554fe3d406aab56fdbe9f46f5be5affaebce71cc7a5d3eebb6ba6badf81f23680c1579e6ccd054a03a0f4b2fbaca93941ddd24bcc57
        b2sums = SKIP
+       b2sums = 
64eaed94c4b158c8ba37ee982112fe384840b43dae9697d89e142a6c3b08695a5258e9a618e8a9d2055fb530eb8a23c6ed8679b208fa27fadeeea508f18d2ef4
 
 pkgname = junction


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=junction
 pkgver=1.8
-pkgrel=3
+pkgrel=4
 pkgdesc='Application chooser to open files and links'
 arch=(any)
 url='https://apps.gnome.org/Junction/'
@@ -26,10 +26,12 @@ makedepends=(
 source=(
   "git+https://github.com/sonnyp/Junction.git#tag=v$pkgver";
   git+https://github.com/sonnyp/troll.git
+  junction-gtk-init.patch
 )
 b2sums=(
   
3112b4ef690933fc57260554fe3d406aab56fdbe9f46f5be5affaebce71cc7a5d3eebb6ba6badf81f23680c1579e6ccd054a03a0f4b2fbaca93941ddd24bcc57
   SKIP
+  
64eaed94c4b158c8ba37ee982112fe384840b43dae9697d89e142a6c3b08695a5258e9a618e8a9d2055fb530eb8a23c6ed8679b208fa27fadeeea508f18d2ef4
 )
 
 prepare() {
@@ -38,6 +40,9 @@ prepare() {
   git submodule init
   git submodule set-url troll "$srcdir/troll"
   git -c protocol.file.allow=always submodule update
+
+  # Fix initialization with GTK 4.18
+  git apply -3 ../junction-gtk-init.patch
 }
 
 build() {


=====================================
junction-gtk-init.patch
=====================================
@@ -0,0 +1,28 @@
+From b474793c5509c3a68a60e68b5db0745eb821ce1d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <[email protected]>
+Date: Tue, 25 Mar 2025 01:51:16 +0100
+Subject: [PATCH] Set color scheme later
+
+GTK 4.18 no longer allow to create displays before GDK has been initialized.
+Therefore the style manager cannot be initialized before that, as it causing 
an abort.
+
+See details: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7836
+---
+ src/application.js | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/application.js b/src/application.js
+index e051fcc..223d5c0 100644
+--- a/src/application.js
++++ b/src/application.js
+@@ -27,7 +27,9 @@ export default function Application() {
+     );
+   }
+ 
+-  Adw.StyleManager.get_default().set_color_scheme(Adw.ColorScheme.FORCE_DARK);
++  application.connect("startup", () => {
++    
Adw.StyleManager.get_default().set_color_scheme(Adw.ColorScheme.FORCE_DARK);
++  });
+ 
+   // FIXME: Cannot deal with mailto:, xmpp:, ... URIs
+   // GFile mess the URI if the scheme separator does not include "//" like 
about:blank or mailto:[email protected]



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/junction/-/commit/0ccffefa50de782121b5b3d3a612d1453f4d6e1c

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/junction/-/commit/0ccffefa50de782121b5b3d3a612d1453f4d6e1c
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to