Skip to content
This repository has been archived by the owner on Sep 1, 2019. It is now read-only.

Commit

Permalink
fix issue when launching default terminal on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mmozeiko committed Jul 1, 2017
1 parent 3c9c69a commit 7106638
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,14 @@ void MainWindow::rcloneConfig()
"Please set path to terminal executable in $TERMINAL environment variable.", QMessageBox::Ok);
return;
}
p->setArguments(QStringList() << "-e" << GetRclone() << "config" << GetRcloneConf());
}
else
{
p->setArguments(QStringList() << "-e" << (GetRclone() + " config " + GetRcloneConf().join(" ")));
}

p->setProgram(terminal);
p->setArguments(QStringList() << "-e" << (GetRclone() + " config" + GetRcloneConf().join(" ")));
#endif

#if !defined(Q_OS_WIN32) || (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0))
Expand Down

0 comments on commit 7106638

Please sign in to comment.