https://bugs.kde.org/show_bug.cgi?id=525104

--- Comment #2 from max tardis <[email protected]> ---
[SOLVED]

kio-admin must be installed.

In Konsole launch with:
alias dolphin='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY
KDE_FULL_SESSION=true /usr/bin/dolphin'

Add this alias in /root/bashrc to stabilize.

For icon/launcher in System Menu create a script to launch dolphin,
/root/bin/dolphin-root.sh:

#!/bin/bash
if [ -z "$DISPLAY" ]; then
    DISPLAY=$(who | grep -m1 ':0' | awk '{print $2}' | cut -d'(' -f1)
    if [ -z "$DISPLAY" ]; then
        DISPLAY=":0"
    fi
fi

XAUTH_FILE=$(find /tmp -name "xauth_*" -user root 2>/dev/null | head -1)
if [ -z "$XAUTH_FILE" ]; then
    XAUTH_FILE="/root/.Xauthority"
fi
pkexec env DISPLAY="$DISPLAY" XAUTHORITY="$XAUTH_FILE" KDE_FULL_SESSION=true
/usr/bin/dolphin

and create a locale .desktop for dolphin to override system's .desktop,
/root/.local/share/applications/org.kde.dolphin.desktop:

[Desktop Entry]
Name=Dolphin (Root)
Comment=File Manager with root privileges
Exec=/root/bin/dolphin-root.sh
Icon=system-file-manager
Terminal=false
Type=Application
Categories=System;FileTools;
StartupNotify=true

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to