| The Following 7 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
|
|
03-21-2012
, 09:05 PM
|
|
Posts: 302 |
Thanked: 233 times |
Joined on May 2010
@ Manila
|
#2
|
|
|
03-22-2012
, 07:03 AM
|
|
Posts: 628 |
Thanked: 2,142 times |
Joined on Mar 2009
|
#3
|

|
|
03-22-2012
, 07:43 AM
|
|
Posts: 338 |
Thanked: 128 times |
Joined on Jan 2011
@ portugal
|
#4
|
| The Following User Says Thank You to ed_boner For This Useful Post: | ||
|
|
03-22-2012
, 08:04 AM
|
|
Posts: 43 |
Thanked: 12 times |
Joined on Apr 2011
@ Qatar
|
#5
|
| The Following User Says Thank You to Santhan For This Useful Post: | ||
![]() |
| Thread Tools | Search this Thread |
|
This time point is to add widget to the every desktop, regardless number of desktops (one, four,five, nine, hundred?)
debian/postinst is slightly modified than on the main-thread, but it has magic for looping over every desktop, (number of desktops are checked during installation).
#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*Only first widget get given coordinates (even same file is copied for every widget)
*Removing package will also count number of desktops during that moment (it could be other than during installation)
---
Package name is qbw-nemo-dockbar and as name suggest it is dockbar aka quicklauncher. You can see image on http://www.4shared.com/photo/GPntGra...rait_v110.html (bottom of the screen)
Currently it only contains button to the application menu.