From b3579e347d9526b9f4706e1e9d31f71dcda8d92d Mon Sep 17 00:00:00 2001 From: kozec Date: Tue, 14 Jun 2016 19:29:49 +0200 Subject: [PATCH] Fix: Settings dialog trying to overwrite profile in /usr/share. Fixes #44 --- scc/gui/global_settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scc/gui/global_settings.py b/scc/gui/global_settings.py index 39da2fb9b..bb7b97d71 100644 --- a/scc/gui/global_settings.py +++ b/scc/gui/global_settings.py @@ -9,6 +9,7 @@ from gi.repository import Gdk, GObject, GLib from scc.modifiers import SensitivityModifier +from scc.paths import get_profiles_path from scc.constants import LEFT, RIGHT from scc.tools import find_profile from scc.actions import ACTIONS @@ -22,7 +23,7 @@ from scc.osd.keyboard import Keyboard as OSDKeyboard from scc.osd.osk_actions import OSK, OSKCursorAction -import re, logging +import re, os, logging log = logging.getLogger("GS") class GlobalSettings(Editor, UserDataManager, ComboSetter): @@ -131,7 +132,8 @@ def _save_osk_profile(self, profile): Saves on-screen keyboard profile and calls daemon.reconfigure() Used by methods that are changing it. """ - profile.save(find_profile(OSDKeyboard.OSK_PROF_NAME)) + profile.save(os.path.join(get_profiles_path(), + OSDKeyboard.OSK_PROF_NAME + ".sccprofile")) self.app.dm.reconfigure()