summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kxkb/extension.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/kxkb/extension.cpp b/kxkb/extension.cpp
index 29435e620..616167944 100644
--- a/kxkb/extension.cpp
+++ b/kxkb/extension.cpp
@@ -180,9 +180,10 @@ bool XKBExtension::setLayoutInternal(const TQString& model,
p.start(TDEProcess::Block);
// reload system-wide hotkey-setup keycode -> keysym maps
- if ( TQFile::exists( "/opt/trinity/share/apps/kxkb/system.xmodmap" ) ) {
+ TQString modmapFileName = TDEGlobal::dirs()->findResource( "data", "kxkb/system.xmodmap" );
+ if ( TQFile::exists( modmapFileName ) ) {
TDEProcess pXmodmap;
- pXmodmap << "xmodmap" << "/opt/trinity/share/apps/kxkb/system.xmodmap";
+ pXmodmap << "xmodmap" << modmapFileName;
pXmodmap.start(TDEProcess::Block);
}