prevent-sleep: Add desktop file
This commit is contained in:
parent
ed379a1131
commit
3799873323
@ -16,15 +16,20 @@
|
|||||||
(build-system copy-build-system)
|
(build-system copy-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:install-plan
|
'(#:install-plan
|
||||||
'(("prevent-sleep" "bin/"))
|
'(("prevent-sleep" "bin/")
|
||||||
|
("prevent-sleep.desktop" "share/applications/"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'configure
|
(add-after 'unpack 'configure
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(substitute* (list "prevent-sleep")
|
(substitute* (list "prevent-sleep")
|
||||||
(("@YAD_PATH@")
|
(("@YAD_PATH@")
|
||||||
(string-append (assoc-ref inputs "yad")
|
(string-append (assoc-ref inputs "yad")
|
||||||
"/bin")))
|
"/bin")))
|
||||||
|
(substitute* (list "prevent-sleep.desktop")
|
||||||
|
(("@EXEC@")
|
||||||
|
(string-append (assoc-ref outputs "out")
|
||||||
|
"/bin/prevent-sleep")))
|
||||||
#t)))))
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("yad" ,yad)))
|
`(("yad" ,yad)))
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Suspend Inhibitor
|
||||||
|
Icon=gnome-power-manager
|
||||||
|
Exec=@EXEC@
|
||||||
|
Terminal=false
|
Loading…
x
Reference in New Issue
Block a user