Active Topics

 


Reply
Thread Tools
linman's Avatar
Posts: 58 | Thanked: 49 times | Joined on Feb 2008
#11
What version of xdialog did you compile?
__________________
while (FALSE == FALSE) fork();
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#12
2.3.1. (Latest)

After installing gtk-1.2, the rest clean compiles.
 
linman's Avatar
Posts: 58 | Thanked: 49 times | Joined on Feb 2008
#13
Originally Posted by ukki View Post
Can I make a suggestion here? Me and ArnimS have been using /media/mmcX/share/gamename for data files. User will most likely want the datafiles on either card. So:

use maemo-confirm-text in preinst to ask which card user wants
symlink something like /tmp/gameinstaller to card/share/gamename
make package install data files in /tmp/gameinstaller (i guess if the files are owned by user it doesn't try to chown them. Not sure so check the pingus data package)
remove link in postinst
Make game look for datafiles from cwd. Then use a script to launch the game that checks which card the data files are on and cd into it before running the binary. That way user could actually swap cards on N800 and the game would still work.
Finally make prerm delete the datafiles from either card.

Most of this work is already done in Tower Toppler package. You would only need to add that symlink thing.
Good idea 10x
I am going to play with maemo-confirm-text.
__________________
while (FALSE == FALSE) fork();
 
linman's Avatar
Posts: 58 | Thanked: 49 times | Joined on Feb 2008
#14
ukki where I could get Tower Toppler package to see what is done there?
__________________
while (FALSE == FALSE) fork();
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#15
http://pupnik.de/toppler_1.1.3-1_armel.deb

Although maemo-confirm-text should be installed by default you should add a dependency for maemo-installer-utils package. I sometimes tend to forget that

Last edited by ukki; 2008-03-24 at 10:18.
 

The Following User Says Thank You to ukki For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#16
Okay, we can also use something like this:



produced from a command line like this:

Code:
gxmessage -center -buttons root:0,MMC1:1,MMC2:2 -title "Choose Storage" "Where do you want your data files installed? Free space left on your devices: `printf "\n\n"; df -h | grep \"mmc\"`"
The executable is 54kb, get it here:
http://bundyo.org/maemo/gxmessage/gxmessage.gz

Now we only need someone to UUEncode/base64 encode it in a script, extract it in a preinst, ask then delete
 

The Following 4 Users Say Thank You to Bundyo For This Useful Post:
linman's Avatar
Posts: 58 | Thanked: 49 times | Joined on Feb 2008
#17
Good work Bundyo.
I will try it

Maybe tonight if my doughtier get to sleep before midnight ....

So is there widelands' fans
__________________
while (FALSE == FALSE) fork();

Last edited by linman; 2008-03-24 at 13:26.
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#18
Okay, no need for that - just put the executable in the same dir as the pre/postinst script and execute it from there - it works. Just tested it.

Code:
./gxmessage -center -buttons root:100,MMC1:101,MMC2:102 -title "Choose Storage" "Where do you want your data files installed? Free space left on your devices: `printf "\n\n"; df -h | grep \"mmc\"`"
EDIT: Best use bigger button codes You can get them with $? after the command ends (if someone doesn't know).

Last edited by Bundyo; 2008-03-24 at 15:14.
 

The Following User Says Thank You to Bundyo For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#19
Okay, did some refinement and added few features. Changed the window type to dialog, geometry works now, added button alignment and made the icon not required (loads with an option, not that it shows). Looks much better. Does anyone knows how to get the stock icons show on the buttons?

Screens:


Produced with this:
Code:
./gxmessage -center -buttons root:0,MMC1:1,MMC2:2 -geometry 640x250 -title "Choose Storage" "Where do you want your data files installed? Free space left on your devices: `printf "\n\n"; df -h | grep \"mmc\"`"


Produced with this:
Code:
./gxmessage -center -entry -alignbuttons left -buttons GTK_STOCK_NEW:100,GTK_STOCK_CLOSE:102 -geometry 400x50 -title "Name your folder" "Please give a name to your game folder."
http://bundyo.org/maemo/gxmessage/gxmessage.gz
EDIT: Recompiled with -Os then stripped, so it became 20k uncompressed. Quite good.

If someone wants it badly, i guess i can add some predefined hildon dialogs to it - maybe even the wizard.

Last edited by Bundyo; 2008-03-24 at 22:58.
 

The Following 3 Users Say Thank You to Bundyo For This Useful Post:
linman's Avatar
Posts: 58 | Thanked: 49 times | Joined on Feb 2008
#20
I managed to use it for my new widelands packages.

http://www.internettablettalk.com/fo...ad.php?t=18228
__________________
while (FALSE == FALSE) fork();
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:56.