View Single Post
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#158
Originally Posted by AapoRantalainen View Post
Now I found how to make new widgets from command line, I can't understand why I didn't find any documentation but I needed to run
Code:
/usr/bin/gnu/find  / -type f -exec md5sum {} \; > before.log 2> /dev/null
#manually make new widget
/usr/bin/gnu/find  / -type f -exec md5sum {} \; > after.log 2> /dev/null
/usr/bin/gnu/diff -u before.log after.log
And read the source code of hildon-desktop.

-----
But now there are steps: (these are for developers, so I won't describe them)
Root:
Code:
mkdir /var/lib/gconf/apps/osso/hildon-desktop/applets/test-widget.desktop
 echo '<?xml version="1.0"?>
 <gconf>
         <entry name="position" mtime="1331031074" type="list" ltype="int">
                 <li type="int" value="0"/>
                 <li type="int" value="306"/>
         </entry>
 </gconf>
 ' > /var/lib/gconf/apps/osso/hildon-desktop/applets/test-widget.desktop/%gconf.xml
User: (adding 'getting started'-widget)
Code:
echo "
[test-widget.desktop-0]
X-Desktop-File=/usr/share/applications/hildon-home/tutorial-home.desktop
" >>  /home/user/.config/hildon-desktop/home.plugins
-> Now you can see new widget.

Changing just created widget to the desktop 2
user:
Code:
gconftool-2 --set /apps/osso/hildon-desktop/applets/test-widget.desktop-0/view --type int 2
This modification is not visible after: killall hildon-desktop

---
I'm not yet sure does QBW has any mechanics for commandline addings or do we need some hacking there also.
TransTech made nice separated .queen_beecon-files which can be catenated to the end of existing one, so this might be almost ready (in theory).
Are there some qbw config files? this way we could avoid generating the widgets and just include 'em in the .deb
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post: