Skip to content

Commit

Permalink
Fix: Settings dialog trying to overwrite profile in /usr/share. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Jun 14, 2016
1 parent ac74377 commit b3579e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scc/gui/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down Expand Up @@ -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()


Expand Down

0 comments on commit b3579e3

Please sign in to comment.