1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 03:45:56 +01:00

Try starting the new gnome-control-center keyboard command as well as gnome-keybinding-properties. Fixes issue 2283.

This commit is contained in:
David Sansome 2011-10-14 22:07:01 +01:00
parent 2bffe1fa82
commit 6d435f9276

View File

@ -166,8 +166,11 @@ void GlobalShortcutsSettingsPage::ChangeClicked() {
void GlobalShortcutsSettingsPage::OpenGnomeKeybindingProperties() {
if (!QProcess::startDetached("gnome-keybinding-properties")) {
QMessageBox::warning(this, "Error",
tr("The \"%1\" command could not be started.")
.arg("gnome-keybinding-properties"));
if (!QProcess::startDetached("gnome-control-center",
QStringList() << "keyboard")) {
QMessageBox::warning(this, "Error",
tr("The \"%1\" command could not be started.")
.arg("gnome-keybinding-properties"));
}
}
}