1
0
Fork 0

Fix path to appimageupdatetool.

This commit is contained in:
Kitteh 2018-10-23 13:43:27 +01:00
parent f2ec85aac0
commit eb640e414e

View file

@ -27,7 +27,7 @@ int main( int argc, char *argv[] )
for (int i = 1; i < argc; ++i) { for (int i = 1; i < argc; ++i) {
if (!qstrcmp(argv[i], "--update")) { 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; QProcess updater;
updater.setProcessChannelMode(QProcess::ForwardedChannels); updater.setProcessChannelMode(QProcess::ForwardedChannels);
updater.start(program, QStringList() << QProcessEnvironment::systemEnvironment().value("APPIMAGE", "")); updater.start(program, QStringList() << QProcessEnvironment::systemEnvironment().value("APPIMAGE", ""));