diff --git a/src/main.cpp b/src/main.cpp index b86f668..00b6df9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,7 +27,7 @@ int main( int argc, char *argv[] ) for (int i = 1; i < argc; ++i) { if (!qstrcmp(argv[i], "--update")) { - QString program = QProcessEnvironment::systemEnvironment().value("APPDIR", "/usr/bin") + "/appimageupdatetool"; + QString program = QProcessEnvironment::systemEnvironment().value("APPDIR", "") + "/usr/bin/appimageupdatetool"; QProcess updater; updater.setProcessChannelMode(QProcess::ForwardedChannels); updater.start(program, QStringList() << QProcessEnvironment::systemEnvironment().value("APPIMAGE", ""));