diff options
author | Ken Moore <ken@pcbsd.org> | 2015-03-12 18:55:20 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-03-12 18:55:20 -0400 |
commit | 4760ae5878a8b9f51450b9ce9f1fcc5b8a6b2e2a (patch) | |
tree | e19ba3c3191a9c8394b31ded1f9a2c4e4a8932c9 /lumina-open/LFileDialog.cpp | |
parent | Merge branch 'master' of https://github.com/pcbsd/lumina (diff) | |
download | lumina-4760ae5878a8b9f51450b9ce9f1fcc5b8a6b2e2a.tar.gz lumina-4760ae5878a8b9f51450b9ce9f1fcc5b8a6b2e2a.tar.bz2 lumina-4760ae5878a8b9f51450b9ce9f1fcc5b8a6b2e2a.zip |
Make the XDG Exec= field code substitutions a bit more robust for missing fields in the *.desktop file.
Also fix a bug in lumina-open where the field code substitutions were not happening for non-default applications.
Diffstat (limited to 'lumina-open/LFileDialog.cpp')
-rw-r--r-- | lumina-open/LFileDialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-open/LFileDialog.cpp b/lumina-open/LFileDialog.cpp index d648925b..361cd99f 100644 --- a/lumina-open/LFileDialog.cpp +++ b/lumina-open/LFileDialog.cpp @@ -239,7 +239,7 @@ void LFileDialog::on_tool_ok_clicked(){ bool ok = false; XDGDesktop app = LXDG::loadDesktopFile(PREFAPPS[ui->combo_rec->currentIndex()], ok); //Set the output variables - appExec = app.exec; + appExec = LXDG::getDesktopExec(app); appPath = app.path; appFile = app.filePath; setPreferredApplication(app.filePath); //bump this to the top of the preferred list for next time @@ -248,7 +248,7 @@ void LFileDialog::on_tool_ok_clicked(){ bool ok = false; XDGDesktop app = LXDG::loadDesktopFile(ui->tree_apps->currentItem()->whatsThis(0), ok); //Set the output variables - appExec = app.exec; + appExec = LXDG::getDesktopExec(app); appPath = app.path; appFile = app.filePath; setPreferredApplication(app.filePath); //save this app to this extension as a recommendation |