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
1 changed files with 6 additions and 3 deletions

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"));
}
}
}