diff --git a/plasmoid/scripts/settestenv.sh b/plasmoid/scripts/settestenv.sh index 1bf82e1..436f0c6 100755 --- a/plasmoid/scripts/settestenv.sh +++ b/plasmoid/scripts/settestenv.sh @@ -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" diff --git a/plasmoid/testing.md b/plasmoid/testing.md index ba3fcb3..ef012d5 100644 --- a/plasmoid/testing.md +++ b/plasmoid/testing.md @@ -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).