wok annotate openbox/stuff/open-folder-menu.sh @ rev 21988

Up sudo (1.8.28) CVE-2019-14287
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 15 10:14:15 2019 +0200 (2019-10-15)
parents 4434891fab1c
children
rev   line source
pankso@684 1 #!/bin/sh
pankso@684 2 #
al@14907 3 # Openbox pipe menu to launch file-manager using GTK bookmarks.
pankso@684 4 #
pankso@684 5 echo '<openbox_pipe_menu>'
pankso@684 6
mojo@16719 7 bookmarks="#$(whoami)
al@14907 8 ~/Desktop $(gettext gtk20 Desktop)
al@14907 9 $(cat ~/.gtk-bookmarks)"
pankso@684 10
al@14907 11 IFS='
al@14907 12 '
al@14907 13 for dir in $bookmarks; do
al@14907 14 cat << EOT
mojo@16719 15 <item label="$(echo $dir | sed -e 's|^[^ ]* ||' -e 's|#||')">
al@14907 16 <action name="Execute">
al@14907 17 <execute>file-manager $(echo $dir | awk '{print $1}')</execute>
al@14907 18 </action>
al@14907 19 </item>
al@14907 20 EOT
pankso@684 21 done
pankso@684 22
pankso@684 23 echo '</openbox_pipe_menu>'