gnu: elogind: Support global shutdown & suspend hooks.
* gnu/packages/freedesktop.scm (elogind)[arguments]: Add a new 'use-global-hook-directory phase.
This commit is contained in:
		
							parent
							
								
									26a200f71c
								
							
						
					
					
						commit
						f27d4c9a78
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -650,6 +650,13 @@ the freedesktop.org XDG Base Directory specification.")
 | 
				
			||||||
             (substitute* "meson.build"
 | 
					             (substitute* "meson.build"
 | 
				
			||||||
               (("join_paths\\(bindir, 'pkttyagent'\\)")
 | 
					               (("join_paths\\(bindir, 'pkttyagent'\\)")
 | 
				
			||||||
                "'\"/run/current-system/profile/bin/pkttyagent\"'"))))
 | 
					                "'\"/run/current-system/profile/bin/pkttyagent\"'"))))
 | 
				
			||||||
 | 
					         (add-after 'unpack 'use-global-hook-directory
 | 
				
			||||||
 | 
					           ;; XXX There is no run-time setting to set this per-process, only a
 | 
				
			||||||
 | 
					           ;; build-time, hard-coded list of global directories.
 | 
				
			||||||
 | 
					           (lambda _
 | 
				
			||||||
 | 
					             (substitute* (list "src/login/elogind-dbus.c"
 | 
				
			||||||
 | 
					                                "src/sleep/sleep.c")
 | 
				
			||||||
 | 
					               (("PKGSYSCONFDIR") "\"/etc/elogind\""))))
 | 
				
			||||||
         (add-after 'unpack 'adjust-tests
 | 
					         (add-after 'unpack 'adjust-tests
 | 
				
			||||||
           (lambda _
 | 
					           (lambda _
 | 
				
			||||||
             ;; Skip the following test, which depends on users such as 'root'
 | 
					             ;; Skip the following test, which depends on users such as 'root'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue