Skip to content

Commit 3645b2b

Browse files
committed
add desktop file and install it with unison-gui
Taken from the Flatpak repo https://github.com/flathub/io.github.bcpierce00.unison and originally based on the Fedora rpm source.
1 parent 95dfed3 commit 3645b2b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: MIT-0
2+
[Desktop Entry]
3+
Type=Application
4+
Exec=unison-gui
5+
Name=Unison
6+
GenericName=File Synchronizer
7+
Comment=Multi-master File synchronization tool
8+
Terminal=false
9+
Icon=io.github.bcpierce00.unison
10+
StartupNotify=true
11+
Categories=Utility;

src/make_tools.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ let install () =
576576
let mandir = "MANDIR" <--? datarootdir ^ "/man" in
577577
let man1dir = "MAN1DIR" <--? mandir ^ "/man1" in
578578
let manext = "MANEXT" <--? ".1" in
579+
let desktopdir = "DESKTOPDIR" <--? datarootdir ^ "/applications" in
579580

580581
let install_if_exists dir name dest =
581582
if exists dir name then exec
@@ -592,6 +593,10 @@ let install () =
592593
exec [install; "-d"; destdir ^ man1dir];
593594
exec [install_data; "man/unison.1"; destdir ^ man1dir ^ "/unison" ^ manext]
594595
end;
596+
if exists "src" "unison-gui" then begin
597+
exec [install; "-d"; destdir ^ desktopdir];
598+
exec [install_data; "data/io.github.bcpierce00.unison.desktop"; destdir ^ desktopdir ^ "/io.github.bcpierce00.unison.desktop"]
599+
end;
595600
if exists "src/uimac/build/Default" "Unison.app" then begin
596601
print_endline ("!!! The GUI for macOS has been built but will NOT be \
597602
installed automatically. You can find the built GUI package at " ^

0 commit comments

Comments
 (0)