mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-30 08:45:25 +00:00
Separate platform from use of APPIMAGE (#196)
This commit is contained in:
parent
44493c6327
commit
253dae261c
@ -201,5 +201,6 @@ unix {
|
|||||||
appimage_root.files = $$icon_file $$desktop_file
|
appimage_root.files = $$icon_file $$desktop_file
|
||||||
|
|
||||||
INSTALLS += appimage_root
|
INSTALLS += appimage_root
|
||||||
|
DEFINES += APPIMAGE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include "dialogs/NewFileDialog.h"
|
#include "dialogs/NewFileDialog.h"
|
||||||
#include "dialogs/OptionsDialog.h"
|
#include "dialogs/OptionsDialog.h"
|
||||||
|
|
||||||
#ifdef __unix__
|
#ifdef APPIMAGE
|
||||||
#define PREFIX "/tmp/.cutter_usr"
|
#define PREFIX "/tmp/.cutter_usr"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
@ -109,13 +109,13 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Hack to make it work with AppImage
|
// Hack to make it work with AppImage
|
||||||
#ifdef __unix__
|
#ifdef APPIMAGE
|
||||||
set_appimage_symlink();
|
set_appimage_symlink();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int ret = a.exec();
|
int ret = a.exec();
|
||||||
|
|
||||||
#ifdef __unix__
|
#ifdef APPIMAGE
|
||||||
remove(PREFIX);
|
remove(PREFIX);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user