diff options
author | Michele Calgaro <[email protected]> | 2018-08-28 23:02:07 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2018-08-28 23:02:07 +0900 |
commit | bcbc3ba665a4c27a0426b6b373a8b674fd0e7a31 (patch) | |
tree | fa9f37e106d4f95f18b79278d966bf8e15812de7 | |
parent | 6e32e1ee97bfbd42ca7dfbf753c07ab0ea2d6bf3 (diff) | |
download | tdebase-bcbc3ba665a4c27a0426b6b373a8b674fd0e7a31.tar.gz tdebase-bcbc3ba665a4c27a0426b6b373a8b674fd0e7a31.zip |
Removed hard-coded reference to /opt/trinity. This resolves bug 680.
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | kxkb/extension.cpp | 5 |
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); } |