In 25.04.0 menu Settings > Configure Dolphin > View > Background: Double-click triggers has only two options: Nothing & Custom Command.
How can I get all the other missing options?
In 25.04.0 menu Settings > Configure Dolphin > View > Background: Double-click triggers has only two options: Nothing & Custom Command.
How can I get all the other missing options?
What it your distro ?
This shouldn’t be really possible, the actions there are built-in.
There might be an issue with the configuration file at ~/.local/share/kxmlgui5/dolphin/dolphinui.rc
that might be out-of-sync somehow.
You can try to move the file elsewhere to keep it saved, and relaunch dolphin.
Fedora 42.
I tried to move the dolphinui.rc file and restarted dolphin and it didn’t make any difference. Should I reboot my system?
If you updated without rebooting, yes.
Make sure to have closed Dolphin before testing, I think the file is loaded only on launch.
Sorry, I did reboot several times my Fedora 42 distro. I was asking if I should reboot my whole system after moving the file ~/.local/share/kxmlgui5/dolphin/dolphinui.rc
I had a quick look at the code on github, hopefully what I saw was in the correct branch and the correct file:
src/settings/viewmodes/generalviewsettingspage.cpp
(Sorry I can’t post links here)
The actions seems to be hard coded in the allowedActions
variable so maybe that statement if (mainWindow != nullptr)
is evaluating to false
for some reason.
I’m not really sure where to go from here. Any advice?
// create actions combo-box and add actions
m_doubleClickViewComboBox = new QComboBox();
m_doubleClickViewComboBox->setAccessibleDescription(i18nc("Accessible description for combobox with actions of double click view background setting",
"Action to trigger when double clicking view background"));
// i18n: Completes the sentence "Double-click triggers [Nothing]".
m_doubleClickViewComboBox->addItem(QIcon::fromTheme("empty"), i18nc("@item:inlistbox", "Nothing"), QStringLiteral("none"));
m_doubleClickViewComboBox->addItem(QIcon::fromTheme("list-add"), i18nc("@item:inlistbox", "Custom Command"), customCommand);
m_doubleClickViewComboBox->insertSeparator(2);
DolphinMainWindow *mainWindow = qobject_cast<DolphinMainWindow *>(QApplication::activeWindow());
if (mainWindow != nullptr) {
KActionCollection *actions = mainWindow->actionCollection();
// get the allowed actions from actionCollection and add them to the combobox
for (const QString &actionName : allowedActions) {
QAction *action = actions->action(actionName);
if (action == nullptr) {
qCWarning(DolphinDebug) << QStringLiteral("Double click view: action `%1` was not found").arg(actionName);
continue;
}
QString actionText = action->text();
// remove ampersand used to define the action's shortcut
actionText.remove(QLatin1Char('&'));
m_doubleClickViewComboBox->addItem(action->icon(), actionText, action->objectName());
}
}
KActionCollection *actions = mainWindow->actionCollection();
It is checking if the action are “present” / defined from the application metadata declared actions, which is backed by ~/.local/share/kxmlgui5/dolphin/dolphinui.rc
.
I don’t have this issue in Arch.
You should see warnings in the console, if you you launch dolphin from the command-line.
There’s no warning in the console.
Do you think you could send me your dolphinui.rc file please so I can diff mine with yours?
That’s supposed to be src/dolphinui.rc · master · System / Dolphin · GitLab
Thanks, well my original dolphinui.rc file is the same as the one you sent over.
As I’m not even getting any warning message on my console which would look like "Double click view: action xxxx was not found"
I guess the code is not even entering the if condition.
DolphinMainWindow *mainWindow = qobject_cast<DolphinMainWindow *>(QApplication::activeWindow());
This might be the code failing.
Might be due to compiling options. Some are now to change code.
Does fedora uses LTO ?
This also happened to me yesterday.
Kubuntu 25.04
Plasma 6.3.5
Dolphin 24.12.3 and 25.04.0 (tried both, same issue)
I tried purging and reinstalling Dolphin from official Ubuntu repositories, from Flatpak, from Snap (an older version), always the same issue. With one of the reinstalls, I briefly got the options back, but as soon as I closed Dolphin and launched it again, they were gone. This happened even after I manually deleted conf and cache files.
Apparently yes, but don’t quote me on this.