Skip to content

Instantly share code, notes, and snippets.

Created November 22, 2014 18:28
Show Gist options
  • Save anonymous/0d432a3215ad65f519fc to your computer and use it in GitHub Desktop.
Save anonymous/0d432a3215ad65f519fc to your computer and use it in GitHub Desktop.
kf5env.sh
#!/bin/bash
export KF5=/opt/kdevelop
export QTDIR=/usr
export XDG_DATA_DIRS=$KF5/share:$XDG_DATA_DIRS:/usr/share
export XDG_CONFIG_DIRS=$KF5/etc/xdg:$XDG_CONFIG_DIRS:/etc/xdg
export PATH=$KF5/bin:$QTDIR/bin:$PATH
export QT_PLUGIN_PATH=$KF5/lib64/plugins:$KF5/lib64/plugins:$KF5/lib64/x86_64-linux-gnu/plugins:$QTDIR/plugins:$QT_PLUGIN_PATH
# (lib64 instead of lib, on OpenSUSE and similar)
export QML2_IMPORT_PATH=$KF5/lib64/qml:$KF5/lib64/qml:$KF5/lib64/x86_64-linux-gnu/qml:$QTDIR/qml
export QML_IMPORT_PATH=$QML2_IMPORT_PATH
export KDE_SESSION_VERSION=5
export KDE_FULL_SESSION=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment