[dolphin] [Bug 421294] Dolphin settings not detecting executable scripts behaviourOnLaunch "open" value

Wolfgang Bauer bugzilla_noreply at kde.org
Tue Jun 30 16:01:35 BST 2020


https://bugs.kde.org/show_bug.cgi?id=421294

--- Comment #3 from Wolfgang Bauer <wbauer at tmo.at> ---
(In reply to Wolfgang Bauer from comment #2)
> kio doesn't know about "dontAsk", it uses "open" for "Open in application".
To be more precise, it actually only knows "alwaysAsk" and "execute", all other
values are mapped to "open".
This is the code that reads the setting (in src/widgets/krun.cpp):
        KConfigGroup
cfgGroup(KSharedConfig::openConfig(QStringLiteral("kiorc")), "Executable
scripts");
        const QString value = cfgGroup.readEntry("behaviourOnLaunch",
"alwaysAsk");

        if (value == QLatin1String("alwaysAsk")) {
            return true;
        } else {
            q->setRunExecutables(value == QLatin1String("execute"));
        }

It however does write the values "open" or "execute" though when ticking the
"Don't ask again" checkbox:
   if (isDontAskAgainSet) {
        QString output = result == ExecutableFileOpenDialog::OpenFile ?
QStringLiteral("open") : QStringLiteral("execute");
        KConfigGroup
cfgGroup(KSharedConfig::openConfig(QStringLiteral("kiorc")), "Executable
scripts");
        cfgGroup.writeEntry("behaviourOnLaunch", output);
    }

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the kfm-devel mailing list