sed non scrive sul file startup di fluxbox
Inviato: ven 9 set 2016, 12:06
come mai sed non aggiunge una riga al mio file di startup, cosi configurato:
La riga da aggiungere va collocata sotto #[wall] tramite seguente script#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.
# Change your keymap:
xmodmap "/home/pluto/.Xmodmap"
# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
#[wall]
setxkbmap it &
nm-applet &
fbsetbg -l &
play ~/.fluxbox/sounds/wind.mp3 &
# Start DBUS session bus:
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi
# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.
exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log "/home/pluto/.fluxbox/log"
ho tentato anche senza usare la redirezione. forse misfugge qualcosa.function REMEMBER ()
{
#sed '/\[option\]/a Hello World' input
STARTUP=$(zenity --list --text="Pic startup" --radiolist --column "" --column "Load background on startup?" TRUE yes FALSE no)
case $STARTUP in
yes)
W=`cat ~/.fluxbox/fluxytool/wallpaper`
sed '/\#[wall]/a "$W" ' ~/.fluxbox/startup > ~/.fluxbox/pippo
;;
esac
}