Skip to content

Instantly share code, notes, and snippets.

@Khip01
Created September 8, 2025 00:18
Show Gist options
  • Save Khip01/d536a5601b2ebc94f63a96b0c837e644 to your computer and use it in GitHub Desktop.
Save Khip01/d536a5601b2ebc94f63a96b0c837e644 to your computer and use it in GitHub Desktop.

Open Dolphin (Linux File Manager) as Administrator via Konsole

This guide shows how to run Dolphin as root from the terminal.

1. Open Dolphin as Administrator (basic)

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin

2. Open Dolphin in the Current Directory

bash

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin "$(pwd)"

3. Open Dolphin in the Current Directory (New Window)

bash

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin --new-window "$(pwd)"

Tested on

  • openSUSE Leap 16 RC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment