Adapt setup of QT_PLUGIN_PATH in Plasmoid test script to Plasma 6
This commit is contained in:
parent
85c180d625
commit
2c35fa8290
|
@ -12,9 +12,9 @@ export XDG_CONFIG_HOME=
|
|||
|
||||
# set QT_PLUGIN_PATH if it has not already been set
|
||||
if ! [[ $QT_PLUGIN_PATH ]]; then
|
||||
if [[ -f $PWD/syncthingtray/plasmoid/lib/plasma/applets/libsyncthingplasmoid.so ]]; then
|
||||
if [ -f "$PWD"/syncthingtray/plasmoid/lib/plasma/applets/*syncthingplasmoid*.so ]; then
|
||||
export QT_PLUGIN_PATH=$PWD/syncthingtray/plasmoid/lib
|
||||
elif [[ -f $PWD/plasmoid/lib/plasma/applets/libsyncthingplasmoid.so ]]; then
|
||||
elif [ -f "$PWD"/plasmoid/lib/plasma/applets/*syncthingplasmoid*.so ]; then
|
||||
export QT_PLUGIN_PATH=$PWD/plasmoid/lib
|
||||
fi
|
||||
echo "QT_PLUGIN_PATH used for Plasmoid testing: $QT_PLUGIN_PATH"
|
||||
|
|
|
@ -22,7 +22,7 @@ rather than the regular home to separate testing from production.
|
|||
by setting `TEST_HOME`; make sure that `TEST_HOME` and the CMake variable `PLASMOID_TESTDIR` are
|
||||
set in accordance.
|
||||
* If not already set, `QT_PLUGIN_PATH` is set to `$CMAKE_CURRENT_BINARY_DIR/plasmoid/lib` which
|
||||
should contain the plugin for the Plasmoid under `plasma/applets/libsyncthingplasmoid.so`.
|
||||
should contain the plugin for the Plasmoid under `plasma/applets/*syncthingplasmoid*.so`.
|
||||
* Set `QT_DEBUG_PLUGINS` to 1 for verbose plugin detection.
|
||||
7. Ignore warning that executable is no debug build, it is sufficient when
|
||||
the plugin is a debug build (see next section for QML debugging).
|
||||
|
|
Loading…
Reference in New Issue