all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#30842] fvwm: Add .desktop file
@ 2018-03-17 18:35 ng0
  2018-03-17 21:35 ` bug#30842: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: ng0 @ 2018-03-17 18:35 UTC (permalink / raw)
  To: 30842

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]

This patch adds a .desktop file for FVWM so that it can be started from SLIM & friends.
-- 
A88C8ADD129828D7EAC02E52E22F9BBFEE348588
https://n0.is

[-- Attachment #2: 0001-gnu-fvwm-Add-.desktop-file.patch --]
[-- Type: text/plain, Size: 1622 bytes --]

From 2a5c19c089ba5cece58e9f681aba8ed9ec9a6f0e Mon Sep 17 00:00:00 2001
From: ng0 <ng0@n0.is>
Date: Sat, 17 Mar 2018 15:57:19 +0000
Subject: [PATCH] gnu: fvwm: Add '.desktop' file.

* gnu/packages/fvwm.scm (fvwm)[arguments]: Add new phase to create '.desktop' file.
---
 gnu/packages/fvwm.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/fvwm.scm b/gnu/packages/fvwm.scm
index 5ff3d5e4f..a4c31aefc 100644
--- a/gnu/packages/fvwm.scm
+++ b/gnu/packages/fvwm.scm
@@ -45,6 +45,27 @@
                (base32
                 "0wzghjgy65pkn31rgl14fngizw7nbkzbxsfa670xmrndpmd4sr81"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-xsession
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (xsessions (string-append out "/share/xsessions")))
+               (mkdir-p xsessions)
+               (with-output-to-file
+                   (string-append xsessions "/fvwm2.desktop")
+                 (lambda _
+                   (format #t
+                           "[Desktop Entry]~@
+                    Name=FVWM~@
+                    Comment=FVWM~@
+                    Exec=~a/bin/fvwm~@
+                    TryExec=~@*~a/bin/fvwm~@
+                    Icon=~@
+                    Type=Application~%"
+                           out))))
+             #t)))))
     (native-inputs
      `(("perl" ,perl)
        ("pkg-config" ,pkg-config)
-- 
2.16.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#30842: fvwm: Add .desktop file
  2018-03-17 18:35 [bug#30842] fvwm: Add .desktop file ng0
@ 2018-03-17 21:35 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-03-17 21:35 UTC (permalink / raw)
  To: ng0; +Cc: 30842-done

Hi ng0,

ng0 <ng0@n0.is> skribis:

> From 2a5c19c089ba5cece58e9f681aba8ed9ec9a6f0e Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@n0.is>
> Date: Sat, 17 Mar 2018 15:57:19 +0000
> Subject: [PATCH] gnu: fvwm: Add '.desktop' file.
>
> * gnu/packages/fvwm.scm (fvwm)[arguments]: Add new phase to create '.desktop' file.

Applied, thanks!

Ludo'.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-17 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-17 18:35 [bug#30842] fvwm: Add .desktop file ng0
2018-03-17 21:35 ` bug#30842: " Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.