Skip to content

Commit 2c60dd7

Browse files
committed
Add desktop files.
1 parent 69e1708 commit 2c60dd7

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

data/snm.desktop.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Desktop Entry]
2+
Name=Simple Normal Mapper
3+
Comment=Easy creation of normal maps
4+
Exec=snm
5+
Icon=snm
6+
Type=Application
7+
Categories=Utility;
8+
StartupNotify=true
9+
X-Ubuntu-Gettext-Domain=snm
10+

data/snm.desktop.opt.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Desktop Entry]
2+
Name=Simple Normal Mapper
3+
Comment=Easy creation of normal maps
4+
Exec=/opt/snm/snm
5+
Icon=snm
6+
Type=Application
7+
Categories=Utility;
8+
StartupNotify=true
9+
X-Ubuntu-Gettext-Domain=snm
10+

snm.pro

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@ isEmpty(_PREFIX) {
4848
_PREFIX = /usr
4949
}
5050

51-
target.path = $$_PREFIX/bin
52-
desktop.path = $$_PREFIX/share/applications
53-
desktop.files += data/snm.desktop
54-
icon1.path = $$_PREFIX/share/icons/hicolor/64x64/apps
55-
icon1.files += data/icons/snm.png
56-
icon2.path = $$_PREFIX/share/pixmaps
57-
icon2.files += data/icons/snm.png
58-
INSTALLS += target desktop icon1 icon2
51+
unix {
52+
target.path = $$_PREFIX/bin
53+
desktop.path = $$_PREFIX/share/applications
54+
desktop.name = snm.desktop
55+
desktop.files += data/snm.desktop
56+
desktop.extra = cp data/snm.desktop.in data/snm.desktop
57+
icon1.path = $$_PREFIX/share/icons/hicolor/64x64/apps
58+
icon1.files += data/icons/snm.png
59+
icon2.path = $$_PREFIX/share/pixmaps
60+
icon2.files += data/icons/snm.png
61+
INSTALLS += target desktop icon1 icon2
62+
}
5963

0 commit comments

Comments
 (0)