#!/bin/sh ENABLED=no [[ ${ENABLED} == "yes" ]] || exit 0 DOLPHINBOOKMARKS=.local/share/user-places.xbel HIDELOOP=255 HIDERAM=0 HIDEZRAM=8 . /usr/lib/ublinux/default [ "$HIDELOOP4DOLPHIN" = "no" ] && exit 0 if [ "$1" != "fork" ] ;then $0 fork & exit 0 fi sleep 3 FFP=$HOME/$DOLPHINBOOKMARKS if [ ! -f $FFP ] ;then dolphin /home & PIDDOL=$! while [ ! -f $FFP ] ;do sleep 0.1 ;done kill $PIDDOL fi if ! grep -q "devices/loop$HIDELOOP" $FFP ;then for a in $(seq 0 "$HIDELOOP") ;do grep -q devices/loop$a $FFP && continue cat >>$FFP < /org/freedesktop/UDisks2/block_devices/loop$a true true Loop device EOF done for a in $(seq 0 "$HIDERAM") ;do grep -q devices/ram$a $FFP && continue cat >>$FFP < /org/freedesktop/UDisks2/block_devices/ram$a true true Ram device EOF done for a in $(seq 0 "$HIDEZRAM") ;do grep -q devices/ram$a $FFP && continue cat >>$FFP < /org/freedesktop/UDisks2/block_devices/zram$a true true ZRam device EOF done sed -i /'<\/xbel>'/d $FFP echo '' >> $FFP fi