Introduction
Introduction Statistics Contact Development Disclaimer Help
Add a desktop entry file. - sam - An updated version of the sam text editor.
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit 6e5cbac842dfa990a9949a561dbee5917b83258d
parent 7986841c8db80c9a3a2fb5527e4d81be37671d00
Author: Rob King <[email protected]>
Date: Fri, 12 Aug 2016 11:55:00 -0500
Add a desktop entry file.
Diffstat:
Makefile | 3 +++
README.rst | 8 ++++++++
deadpixi-sam.desktop | 11 +++++++++++
3 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -4,6 +4,8 @@
# master makefile for sam. configure sub-makefiles first.
#
+MODE?=system
+
all: config.h config.mk commands.h lXg lframe rsamdir samdir samtermdir…
commands.h:
@@ -33,6 +35,7 @@ samtermdir:
cd samterm; $(MAKE)
install:
+ @xdg-desktop-menu install --mode $(MODE) deadpixi-sam.desktop || echo …
cd libXg; $(MAKE) install
cd libframe; $(MAKE) install
cd sam; $(MAKE) install
diff --git a/README.rst b/README.rst
@@ -37,9 +37,17 @@ Installation and configuration is fairly simple:
- Run `make clean all`
- Run `make install` or, if needed, `sudo make install`
+Note that running `make install` will install a `desktop entry file`_, in eith…
+This can be specified via the `MODE` make variable (the default is "system").
+To isntall the desktop entry for the local user only, use:
+
+ make MODE=user install
+
The `sam` command runs sam.
The `B` command adds a new file to a running instance of sam, or starts sam if…
+.. _`desktop entry file`: https://specifications.freedesktop.org/desktop-entry…
+
Running Remotely
--------------------
diff --git a/deadpixi-sam.desktop b/deadpixi-sam.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=sam
+GenericName=Text editor
+Comment=Multi-document text editor with structural regular expressions
+Icon=accessories-text-editor
+Exec=sam %F
+Terminal=false
+Type=Application
+Categories=Utility;TextEditor;
+StartupNotify=false
+MimeType=text/plain
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.