--- Begin Message ---
Subject: |
rxvt-unicode is missing .desktop file(s) |
Date: |
Thu, 24 Mar 2016 13:28:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
urxvt / rxvt-unicode has no .desktop files in Guix and therefore
does not show up in application menus like GNOME provides.
Whoever wants to fix it faster than I do (currently occupied with
psyced related packages), here is my work in progress part of the
rxvt-unicode package.
.desktop files can be found in the source dir of gentoo and
archlinux
(https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/rxvt-unicode)
Code below has not been tested, it may need some fixes, and we
need at least 3 like in archlinux.
(arguments
;; This sets the destination when installing the necessary terminal
;; capability data, which are not provided by 'ncurses'. See
;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
'(#:make-flags
(list (string-append "TERMINFO="
(assoc-ref %outputs "out")
"/share/terminfo"))
#:phases
(modify-phases %standard-phases
(add-after
'install 'install-desktop
(lambda _
(let ((desktop (string-append %output "/share/applications")))
(mkdir-p desktop)
(call-with-output-file
(string-append desktop "/urxvt.desktop")
(lambda (port)
(format port "~
[Desktop Entry]~@
Name=~a~@
Comment=~a~@
TryExec=~a/bin/urxvt~@
Exec=~a/bin/urxvt~@
Icon=terminal~@
Type=Application~@
Categories=GNOME;GTK;Utility;TerminalEmulator;System;~@
StartupNotify=true~%" ,name ,synopsis %output)))))))))
--
ng
personal contact: http://krosos.sdf.org
EDN: https://wiki.c3d2.de/EDN
--- End Message ---
--- Begin Message ---
Subject: |
Re: [PATCH] gnu: rxvt-unicode: Add '.desktop' files. |
Date: |
Sun, 5 Mar 2017 16:26:29 -0500 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Sat, Feb 11, 2017 at 07:26:45PM +0000, address@hidden wrote:
> From: ng0 <address@hidden>
>
> This fixes <https://bugs.gnu.org/23106>.
>
> * gnu/packages/xdisorg.scm (rxvt-unicode)[arguments]: Use
> 'modify-phases'.
> Add 'install-desktop-urxvt' and 'install-desktop-urxvtc' phase.
Pushed, thanks!
--- End Message ---