mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Install logo to desktop icons (#542)
This shows the "n³" logo as icon in application menus, when desktop file is installed (using `install-desktop` make target).
This commit is contained in:
parent
1a78ad4aff
commit
e68d0db949
9
Makefile
9
Makefile
|
@ -3,6 +3,7 @@ VERSION = $(shell grep -m1 VERSION $(SRC) | cut -f 2 -d'"')
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
MANPREFIX ?= $(PREFIX)/share/man
|
MANPREFIX ?= $(PREFIX)/share/man
|
||||||
DESKTOPPREFIX ?= $(PREFIX)/share/applications
|
DESKTOPPREFIX ?= $(PREFIX)/share/applications
|
||||||
|
DESKTOPICONPREFIX ?= $(PREFIX)/share/icons/hicolor
|
||||||
STRIP ?= strip
|
STRIP ?= strip
|
||||||
PKG_CONFIG ?= pkg-config
|
PKG_CONFIG ?= pkg-config
|
||||||
INSTALL ?= install
|
INSTALL ?= install
|
||||||
|
@ -83,6 +84,8 @@ SRC = src/nnn.c
|
||||||
HEADERS = src/nnn.h
|
HEADERS = src/nnn.h
|
||||||
BIN = nnn
|
BIN = nnn
|
||||||
DESKTOPFILE = misc/desktop/nnn.desktop
|
DESKTOPFILE = misc/desktop/nnn.desktop
|
||||||
|
LOGOSVG = misc/logo/logo.svg
|
||||||
|
LOGO64X64 = misc/logo/logo-64x64.png
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
||||||
|
@ -97,9 +100,15 @@ noloc: $(BIN)
|
||||||
install-desktop: $(DESKTOPFILE)
|
install-desktop: $(DESKTOPFILE)
|
||||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(DESKTOPPREFIX)
|
$(INSTALL) -m 0755 -d $(DESTDIR)$(DESKTOPPREFIX)
|
||||||
$(INSTALL) -m 0644 $(DESKTOPFILE) $(DESTDIR)$(DESKTOPPREFIX)
|
$(INSTALL) -m 0644 $(DESKTOPFILE) $(DESTDIR)$(DESKTOPPREFIX)
|
||||||
|
$(INSTALL) -m 0755 -d $(DESTDIR)$(DESKTOPICONPREFIX)/scalable/apps
|
||||||
|
$(INSTALL) -m 0644 $(LOGOSVG) $(DESTDIR)$(DESKTOPICONPREFIX)/scalable/apps/nnn.svg
|
||||||
|
$(INSTALL) -m 0755 -d $(DESTDIR)$(DESKTOPICONPREFIX)/64x64/apps
|
||||||
|
$(INSTALL) -m 0644 $(LOGO64X64) $(DESTDIR)$(DESKTOPICONPREFIX)/64x64/apps/nnn.png
|
||||||
|
|
||||||
uninstall-desktop:
|
uninstall-desktop:
|
||||||
$(RM) $(DESTDIR)$(DESKTOPPREFIX)/$(DESKTOPFILE)
|
$(RM) $(DESTDIR)$(DESKTOPPREFIX)/$(DESKTOPFILE)
|
||||||
|
$(RM) $(DESTDIR)$(DESKTOPICONPREFIX)/scalable/apps/nnn.svg
|
||||||
|
$(RM) $(DESTDIR)$(DESKTOPICONPREFIX)/64x64/apps/nnn.png
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/bin
|
$(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/bin
|
||||||
|
|
|
@ -4,7 +4,7 @@ Name=nnn
|
||||||
Comment=Terminal file manager
|
Comment=Terminal file manager
|
||||||
Exec=nnn
|
Exec=nnn
|
||||||
Terminal=true
|
Terminal=true
|
||||||
Icon=utilities-terminal
|
Icon=nnn
|
||||||
MimeType=inode/directory
|
MimeType=inode/directory
|
||||||
Categories=System;FileTools;FileManager;ConsoleOnly
|
Categories=System;FileTools;FileManager;ConsoleOnly
|
||||||
Keywords=File;Manager;Management;Explorer;Launcher
|
Keywords=File;Manager;Management;Explorer;Launcher
|
||||||
|
|
Loading…
Reference in a new issue