[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/17: gnu: rxvt-unicode: Use helper procedure to make desktop files.
From: |
guix-commits |
Subject: |
13/17: gnu: rxvt-unicode: Use helper procedure to make desktop files. |
Date: |
Tue, 11 Jul 2023 11:01:33 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 355e3c6e1c0d3f847e4c96a566408a7a8aebb551
Author: Timotej Lazar <timotej.lazar@araneo.si>
AuthorDate: Sat Jun 24 13:28:05 2023 +0200
gnu: rxvt-unicode: Use helper procedure to make desktop files.
* gnu/packages/xdisorg.scm (rxvt-unicode)[arguments]: Replace custom code
with
make-desktop-entry-file. Specify categories and icon in desktop files.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/xdisorg.scm | 45 ++++++++++++++-------------------------------
1 file changed, 14 insertions(+), 31 deletions(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 4d072d1e16..1f7539764c 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -1289,38 +1289,21 @@ compact configuration syntax.")
#:make-flags #~(list (string-append "TERMINFO=" #$output
"/share/terminfo"))
#:phases
#~(modify-phases %standard-phases
- (add-after 'install 'install-desktop-urxvt
+ (add-after 'install 'install-desktop-entries
(lambda _
- (let ((desktop (string-append #$output
"/share/applications")))
- (mkdir-p desktop)
- (with-output-to-file
- (string-append desktop "/urxvt.desktop")
- (lambda _
- (format #t
- "[Desktop Entry]~@
- Name=rxvt-unicode~@
- Comment=~@
- Exec=~a/bin/urxvt~@
- TryExec=~@*~a/bin/urxvt~@
- Icon=~@
- Type=Application~%"
- #$output))))))
- (add-after 'install 'install-desktop-urxvtc
- (lambda _
- (let ((desktop (string-append #$output
"/share/applications")))
- (mkdir-p desktop)
- (with-output-to-file
- (string-append desktop "/urxvtc.desktop")
- (lambda _
- (format #t
- "[Desktop Entry]~@
- Name=rxvt-unicode (client)~@
- Comment=Rxvt clone with XFT and unicode
support~@
- Exec=~a/bin/urxvtc~@
- TryExec=~@*~a/bin/urxvtc~@
- Icon=~@
- Type=Application~%"
- #$output)))))))))
+ (for-each (lambda (exec name)
+ (make-desktop-entry-file
+ (string-append #$output "/share/applications/"
+ exec ".desktop")
+ #:type "Application"
+ #:name name
+ #:comment '((#f #$(package-synopsis
this-package)))
+ #:exec exec
+ #:try-exec exec
+ #:icon "utilities-terminal"
+ #:categories '("System" "TerminalEmulator")))
+ '("urxvt" "urxvtc")
+ '("rxvt-unicode" "rxvt-unicode (client)")))))))
(inputs
(list libptytty libxft libx11 libxt libxext))
(native-inputs
- 07/17: gnu: xorriso: Update to 1.5.6.pl02, (continued)
- 07/17: gnu: xorriso: Update to 1.5.6.pl02, guix-commits, 2023/07/11
- 06/17: gnu: hwloc: Update to 2.9.2., guix-commits, 2023/07/11
- 05/17: gnu: guile-chickadee: Change license to Apache 2.0., guix-commits, 2023/07/11
- 10/17: gnu: qbittorrent{,-nox}: Use qt-build-system., guix-commits, 2023/07/11
- 11/17: gnu: rxvt-unicode: Update to 9.31 [fixes CVE-2022-4170]., guix-commits, 2023/07/11
- 12/17: gnu: rxvt-unicode: Use new package style., guix-commits, 2023/07/11
- 15/17: gnu: desktop-file-utils: Format description., guix-commits, 2023/07/11
- 17/17: gnu: gnuplot: Update to 5.4.8., guix-commits, 2023/07/11
- 08/17: gnu: mit-scheme: Fix building, guix-commits, 2023/07/11
- 04/17: avahi: Fix exception when #:timeout is #f., guix-commits, 2023/07/11
- 13/17: gnu: rxvt-unicode: Use helper procedure to make desktop files.,
guix-commits <=
- 16/17: gnu: gmsh: Update to 4.11.1., guix-commits, 2023/07/11
- 02/17: cache: 'file-expiration-time' uses 'lstat', not 'stat'., guix-commits, 2023/07/11