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