Created
December 8, 2012 12:41
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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