From 253dae261c6a61a5cb31b3c746537c2f021fc6c4 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sat, 9 Dec 2017 16:01:30 -0600 Subject: [PATCH] Separate platform from use of APPIMAGE (#196) --- src/cutter.pro | 1 + src/main.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cutter.pro b/src/cutter.pro index 0cc26a6a..bada2b20 100644 --- a/src/cutter.pro +++ b/src/cutter.pro @@ -201,5 +201,6 @@ unix { appimage_root.files = $$icon_file $$desktop_file INSTALLS += appimage_root + DEFINES += APPIMAGE } } diff --git a/src/main.cpp b/src/main.cpp index e767906f..d3c84c19 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,7 +7,7 @@ #include "dialogs/NewFileDialog.h" #include "dialogs/OptionsDialog.h" -#ifdef __unix__ +#ifdef APPIMAGE #define PREFIX "/tmp/.cutter_usr" #include #include @@ -109,13 +109,13 @@ int main(int argc, char *argv[]) } // Hack to make it work with AppImage -#ifdef __unix__ +#ifdef APPIMAGE set_appimage_symlink(); #endif int ret = a.exec(); -#ifdef __unix__ +#ifdef APPIMAGE remove(PREFIX); #endif