#!/bin/bash
# dolphin-e-wrapper.sh - launch Dolphin with correct Qt theme in Enlightenment
set -e

# If we are in Plasma - do not touch platformtheme, let Plasma manage it
if [ "$XDG_CURRENT_DESKTOP" = "KDE" ]; then
    exec /usr/bin/dolphin "$@"
fi

# Otherwise - our mode for Enlightenment
export QT_QPA_PLATFORMTHEME=qt6ct
export QT_STYLE_OVERRIDE=Breeze
exec /usr/bin/dolphin "$@"