Skip to content

Instantly share code, notes, and snippets.

@sassman
Created December 8, 2012 12:41
Show Gist options
  • Save sassman/4240128 to your computer and use it in GitHub Desktop.
Save sassman/4240128 to your computer and use it in GitHub Desktop.
mount-me: can be places in a folder that is mountable then dolphin gets refresh after mounting
#!/bin/bash
mount $PWD
dbus="qdbus"
reload="/dolphin/Dolphin_1/actions/reload org.qtproject.Qt.QAction.trigger"
# sample
# qdbus org.kde.dolphin-3696 /dolphin/Dolphin_1/actions/reload org.qtproject.Qt.QAction.trigger
for i in $(pgrep dolphin); do
$($dbus "org.kde.dolphin-$i" $reload)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment