[wiki] [sites] [st][patch][desktopentry] Do not create symlink || aleks
commit 16cb9b6e12bea7a5ebb2690aa60c5080332938fc
Author: aleks <aleks.stier_AT_icloud.com>
Date: Sat Aug 17 13:41:48 2019 +0200
[st][patch][desktopentry] Do not create symlink
Instead of creating a symlink, copy the st.desktop-file.
diff --git a/st.suckless.org/patches/desktopentry/index.md b/st.suckless.org/patches/desktopentry/index.md
index f128680a..3986cfdd 100644
--- a/st.suckless.org/patches/desktopentry/index.md
+++ b/st.suckless.org/patches/desktopentry/index.md
_AT_@ -3,12 +3,7 @@ desktopentry
Description
-----------
-Enable to find st in a graphical menu and to display it with a nice icon.
-
-After applying this patch you need to run `sudo make install` to
-install the desktop-entry. The Makefile is modified such that a symlink
-to */usr/share/applications/st.desktop* is created during install and
-removed during uninstall.
+Creates a desktop-entry for st. This enables to find st in a graphical menu and to display it with a nice icon. After applying this patch reinstall st. The st.desktop file should be copied automatically to */usr/share/applications* during install and removed during uninstall.
Download
--------
diff --git a/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff b/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff
index b2cb35df..d872f796 100644
--- a/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff
+++ b/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff
_AT_@ -1,15 +1,9 @@
From d0ffefad4c80f45b689aba7dc64c6d155afcdc16 Mon Sep 17 00:00:00 2001
From: aleks <aleks.stier_AT_icloud.com>
Date: Sun, 11 Aug 2019 02:20:42 +0200
-Subject: [PATCH] Add a desktop-entry
+Subject: [PATCH] Create a desktop-entry for st
-Enable to find st in a graphical menu and to display it with a nice
-icon.
-
-After applying this patch you need to run `sudo make install` to
-install the desktop-entry. The Makefile is modified such that a symlink
-to */usr/share/applications/st.desktop* is created during install and
-removed during uninstall.
+Creates a desktop-entry for st. This enables to find st in a graphical menu and to display it with a nice icon. After applying this patch reinstall st. The st.desktop file should be copied automatically to */usr/share/applications* during install and removed during uninstall.
---
Makefile | 2 ++
st.desktop | 7 +++++++
_AT_@ -24,7 +18,7 @@ index 470ac86..0a58d61 100644
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
tic -sx st.info
_AT_echo Please see the README file regarding the terminfo entry of st.
-+ sudo ln -frs st.desktop /usr/share/applications
++ sudo cp -f st.desktop /usr/share/applications
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/st
Received on Sat Aug 17 2019 - 13:43:16 CEST
This archive was generated by hypermail 2.3.0
: Sat Aug 17 2019 - 13:48:24 CEST