mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 20:06:12 +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
|
||||
|
||||
INSTALLS += appimage_root
|
||||
DEFINES += APPIMAGE
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "dialogs/NewFileDialog.h"
|
||||
#include "dialogs/OptionsDialog.h"
|
||||
|
||||
#ifdef __unix__
|
||||
#ifdef APPIMAGE
|
||||
#define PREFIX "/tmp/.cutter_usr"
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user