Fix themes for AppImage

This commit is contained in:
Florian Märkl 2018-03-09 17:06:41 +01:00
parent e2343dc3ad
commit c127772dc1
2 changed files with 6 additions and 2 deletions

View File

@ -98,6 +98,10 @@ before_script:
- cd radare2
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sed -i 's,R2_PREFIX.*,R2_PREFIX "/tmp/.cutter_usr",' libr/include/r_userconf.h.acr;
sed -i 's,R2_DATDIR.*,R2_DATDIR "/tmp/.cutter_usr/share",' libr/include/r_userconf.h.acr;
echo "Modified r_userconf.h.acr:";
cat libr/include/r_userconf.h.acr;
echo "-----------------------------";
INSTALL_TARGET=install sys/install.sh;
else
LDFLAGS=-headerpad_max_install_names INSTALL_TARGET=install sys/install.sh;

View File

@ -27,13 +27,13 @@ void set_appimage_symlink()
int main(int argc, char *argv[])
{
CutterApplication a(argc, argv);
// Hack to make it work with AppImage
#ifdef APPIMAGE
set_appimage_symlink();
#endif
CutterApplication a(argc, argv);
int ret = a.exec();
#ifdef APPIMAGE