Skip to content

Commit

Permalink
chore(dev): auto enable debug in fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
orblazer committed Jan 3, 2022
1 parent 4e2fb96 commit 45fedbd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
PLASMOID_DIR='~/.local/share/plasma/plasmoids/'
PACKAGE_NAME=org.kde.resourcesMonitor-fork

# Enable QT debug
#export QT_LOGGING_RULES="*.debug=true; qt.*.debug=false"
# Enable debug for Fedora
if ! [ -z "$(cat /etc/*release | grep ^NAME | grep Fedora)" ]
then
export QT_LOGGING_RULES="*.debug=true; qt.*.debug=false"
fi

if [ -d "${PLASMOID_DIR}${PACKAGE_NAME}" ]
then
Expand All @@ -15,7 +18,7 @@ else
fi

echo 'Run applet...'
if ! [ -x "$(command -v plasmoidviewer)" ];
if ! [ -x "$(command -v plasmoidviewer)" ]
then
plasmawindowed $PACKAGE_NAME
else
Expand Down

0 comments on commit 45fedbd

Please sign in to comment.