Add a desktop entry file. - sam - An updated version of the sam text editor.
 (HTM) git clone git://vernunftzentrum.de/sam.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 6e5cbac842dfa990a9949a561dbee5917b83258d
 (DIR) parent 7986841c8db80c9a3a2fb5527e4d81be37671d00
 (HTM) Author: Rob King <jking@deadpixi.com>
       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(-)
       ---
 (DIR) 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 docdir
        
        commands.h:
       @@ -33,6 +35,7 @@ samtermdir:
                cd samterm; $(MAKE)
        
        install:
       +        @xdg-desktop-menu install --mode $(MODE) deadpixi-sam.desktop || echo "unable to install desktop entry"
                cd libXg; $(MAKE) install
                cd libframe; $(MAKE) install
                cd sam; $(MAKE) install
 (DIR) 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 either "system" or "user" mode.
       +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 it's not already running.
        
       +.. _`desktop entry file`: https://specifications.freedesktop.org/desktop-entry-spec/latest/
       +
        Running Remotely
        --------------------
        
 (DIR) 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