From 108f16a997db80c2d5ae11360033fb59df8f3211 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 10 Aug 2023 10:31:08 +0300 Subject: [PATCH] kwin: correct patterns for window rules in kwinrules KCM plasma-desktop for example installs such file and it is suffixed with ".kwinrules" (see plasma/containments/desktop/plasma_desktop_containment.kwinrules). also a new MIME type for such file was added, see the following commit in the kdelibs repo: 31553f8958bb3aa36957ae5d2ebe0b315cad27d8 Signed-off-by: Ivailo Monev --- kwin/kcmkwin/kwinrules/ruleslist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kwin/kcmkwin/kwinrules/ruleslist.cpp b/kwin/kcmkwin/kwinrules/ruleslist.cpp index 96d0e950..01e94120 100644 --- a/kwin/kcmkwin/kwinrules/ruleslist.cpp +++ b/kwin/kcmkwin/kwinrules/ruleslist.cpp @@ -152,7 +152,7 @@ void KCMRulesList::exportClicked() { int pos = rules_listbox->currentRow(); assert(pos != -1); - QString path = KFileDialog::getSaveFileName(KUrl(), "*.kwinrule", this, i18n("Export Rule"), 0); + QString path = KFileDialog::getSaveFileName(KUrl(), "*.kwinrules|KWin window rules", this, i18n("Export Rules"), 0); if (path.isEmpty()) return; KConfig config(path, KConfig::SimpleConfig); @@ -163,7 +163,7 @@ void KCMRulesList::exportClicked() void KCMRulesList::importClicked() { - QString path = KFileDialog::getOpenFileName(KUrl(), "*.kwinrule", this, i18n("Import Rules")); + QString path = KFileDialog::getOpenFileName(KUrl(), "*.kwinrules|KWin window rules", this, i18n("Import Rules")); if (path.isEmpty()) return; KConfig config(path, KConfig::SimpleConfig);