unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 67ed6beadb09a0845efa80c5500d6eb7f3a3f459 2008 bytes (raw)
name: gnu/packages/patches/gnome-shell-wrappable-dbus-services.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
 
Retrieved from NixOS: https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/desktops/gnome/core/gnome-shell/wrap-services.patch
---
diff --git a/js/dbusServices/dbus-service.in b/js/dbusServices/dbus-service.in
old mode 100644
new mode 100755
index 524166102..6d0722a1c
--- a/js/dbusServices/dbus-service.in
+++ b/js/dbusServices/dbus-service.in
@@ -1,3 +1,9 @@
+#!@gjs@
+
+// gjs determines the package name from argv[0], which is .*-wrapped
+// so we need to override it to the original one.
+imports.package._findEffectiveEntryPointName = () => '@service@'
+
 imports.package.start({
     name: '@PACKAGE_NAME@',
     prefix: '@prefix@',
diff --git a/js/dbusServices/dbus-service.service.in b/js/dbusServices/dbus-service.service.in
index 3b0d09abe..4fd4bb66d 100644
--- a/js/dbusServices/dbus-service.service.in
+++ b/js/dbusServices/dbus-service.service.in
@@ -1,3 +1,3 @@
 [D-BUS Service]
 Name=@service@
-Exec=@gjs@ @pkgdatadir@/@service@
+Exec=@pkgdatadir@/@service@
diff --git a/js/dbusServices/meson.build b/js/dbusServices/meson.build
index eb941ed90..552051e5a 100644
--- a/js/dbusServices/meson.build
+++ b/js/dbusServices/meson.build
@@ -2,6 +2,7 @@ launcherconf = configuration_data()
 launcherconf.set('PACKAGE_NAME', meson.project_name())
 launcherconf.set('prefix', prefix)
 launcherconf.set('libdir', libdir)
+launcherconf.set('gjs', gjs.full_path())
 
 dbus_services = {
   'org.gnome.Shell.Extensions': 'extensions',
@@ -18,16 +19,17 @@ endif
 config_dir = '@0@/..'.format(meson.current_build_dir())
 
 foreach service, dir : dbus_services
+  svc_launcherconf = launcherconf
+  svc_launcherconf.set('service', service)
   configure_file(
     input: 'dbus-service.in',
     output: service,
-    configuration: launcherconf,
+    configuration: svc_launcherconf,
     install_dir: pkgdatadir,
   )
 
   serviceconf = configuration_data()
   serviceconf.set('service', service)
-  serviceconf.set('gjs', gjs.full_path())
   serviceconf.set('pkgdatadir', pkgdatadir)
 
   configure_file(

debug log:

solving 67ed6beadb ...
found 67ed6beadb in https://yhetil.org/guix-patches/fbadd59837f7c90c8040a8abc91e7da7b09b712a.1712590252.git.dariqq@posteo.net/

applying [1/1] https://yhetil.org/guix-patches/fbadd59837f7c90c8040a8abc91e7da7b09b712a.1712590252.git.dariqq@posteo.net/
diff --git a/gnu/packages/patches/gnome-shell-wrappable-dbus-services.patch b/gnu/packages/patches/gnome-shell-wrappable-dbus-services.patch
new file mode 100644
index 0000000000..67ed6beadb

1:43: trailing whitespace.
 
1:48: trailing whitespace.
 
1:59: trailing whitespace.
 
1:64: trailing whitespace.
 
Checking patch gnu/packages/patches/gnome-shell-wrappable-dbus-services.patch...
Applied patch gnu/packages/patches/gnome-shell-wrappable-dbus-services.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 67ed6beadb09a0845efa80c5500d6eb7f3a3f459	gnu/packages/patches/gnome-shell-wrappable-dbus-services.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).