maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [For testing] multidesktop queen beecon widget: nemo-dockbar on extras-devel (https://talk.maemo.org/showthread.php?t=83170)

AapoRantalainen 2012-03-21 20:27

[For testing] multidesktop queen beecon widget: nemo-dockbar on extras-devel
 
I'm trying to push Queen-Beecon-widgets to the extras-devel, and this procedure is described (and hopefully discussed) on: http://talk.maemo.org/showthread.php?p=1182499

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).
Code:

#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

Issues:
*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.

kent_autistic 2012-03-22 01:05

Re: [For testing] multidesktop queen beecon widget: nemo-dockbar on extras-devel
 
this qbw widget packaged to a deb is gonna be big!

AapoRantalainen 2012-03-22 11:03

Re: [For testing] multidesktop queen beecon widget: nemo-dockbar on extras-devel
 
Quote:

Originally Posted by kent_autistic (Post 1182558)
this qbw widget packaged to a deb is gonna be big!

I hope you mean big='good and usable', not 'heavy to download and fill up your space' :)

I still calculated overhead when comparing for widget-code and image file. These are size of deb, code and png-image
5396 qbw-nemo-dockbar_0.2_all.deb
1781 exported_widget.txt
1037 menu.png

(deb is still only 5k, which is pretty small)

ed_boner 2012-03-22 11:43

Re: [For testing] multidesktop queen beecon widget: nemo-dockbar on extras-devel
 
hello, i want to say i love your work with this qt widgets, my n900 got a lot more eye pleasent and with this new desktop button even more ergonomic...but i have a question: i had a hildon desktop crash due to editing another widget (omweather), and now all tour widgets are gone, and they dont appear in the desktop widgets list...how can i restore them?..i dont understand a thing about beacons, really apreciate your help...tks.

Santhan 2012-03-22 12:04

Re: [For testing] multidesktop queen beecon widget: nemo-dockbar on extras-devel
 
Hai i installed the nemo dock bar it s normal size and i got it in my nine desktops working very smoothly and also tried the other two qbw-harmattan-date, qbw-harmattan-clock but not getting the icons.


All times are GMT. The time now is 03:34.

vBulletin® Version 3.8.8