Open Program: Fix whitespace handling (#87)
Fixes errors external apps give when you have whitespaces in the file name and you try to open the file in an external editor (e.g. GIMP). This happens because whitespaces are interpreted as shell argument separators.
This commit is contained in:
committed by
Dharkael
parent
bf9892d05e
commit
1bc658b7ba
@@ -101,7 +101,7 @@ void AppLauncherWidget::launch(const QModelIndex &index) {
|
||||
}
|
||||
}
|
||||
QString command = index.data(Qt::UserRole).toString().replace(
|
||||
QRegExp("(\%.)"), m_tempFile);
|
||||
QRegExp("(\%.)"), '"' + m_tempFile + '"');
|
||||
bool inTerminal = index.data(Qt::UserRole+1).toBool() ||
|
||||
m_terminalCheckbox->isChecked();
|
||||
if (inTerminal) {
|
||||
|
||||
Reference in New Issue
Block a user