Skip to content

Commit 400ede6

Browse files
committed
Fix installation of desktop file.
1 parent c6c1065 commit 400ede6

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed
File renamed without changes.
File renamed without changes.

snm.pro

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ unix {
6565
_PREFIX = /usr
6666
}
6767
message("Installs to "$$_PREFIX)
68-
_BIN = $$_PREFIX
68+
_BIN = $$_PREFIX/bin
6969
_DAT = $$_PREFIX
7070
}
7171

@@ -76,15 +76,13 @@ unix {
7676
_DAT = $$_DESTDIR/$$_DAT
7777
}
7878

79-
target.path = $$_BIN/bin
80-
desktop.path = $$_DAT/share/applications
81-
desktop.name = snm.desktop
82-
desktop.files += data/snm.desktop
79+
target.path = $$_BIN
80+
desktop.path = $$_DAT/share/applications
8381

8482
if (!isEmpty(_OPT)) {
85-
desktop.extra = cp data/snm.desktop.opt.in data/snm.desktop
83+
desktop.files = data/opt/snm.desktop
8684
} else {
87-
desktop.extra = cp data/snm.desktop.in data/snm.desktop
85+
desktop.files = data/snm.desktop
8886
}
8987

9088
icon1.path = $$_DAT/share/icons/hicolor/64x64/apps

0 commit comments

Comments
 (0)