#with gconf we ask list of desktops ('active'), it looks like this: [1,2,3,4,5] #we drop [ and ] #we change every comma to the space #so it looks like this 1 2 3 4 5 #then we drop '1', because first case is already handled #now we have list for shell-for-loop LIST="$(gconftool-2 -g /apps/osso/hildon-desktop/views/active | sed 's/\[//' | sed 's/\]//' | sed 's/,/ /g' | sed 's/1//')" for desktop in $LIST; do #echo Adding widget also to the desktop $desktop; #add postfix to the NAME NAME=`grep instanceTitle /opt/$PACKAGE_NAME/exported_widget | tail -c +15`$desktop #another folder and duplicate conf mkdir -p /var/lib/gconf/apps/osso/hildon-desktop/applets/queen-beecon.desktop-$NAME cp /var/lib/gconf/apps/osso/hildon-desktop/applets/queen-beecon.desktop-$BASENAME/%gconf.xml /var/lib/gconf/apps/osso/hildon-desktop/applets/queen-beecon.desktop-$NAME/%gconf.xml #push this widget to another desktop gconftool-2 --set /apps/osso/hildon-desktop/applets/queen-beecon.desktop-$NAME/view --type int $desktop add_widget done