maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Something like xdialog (https://talk.maemo.org/showthread.php?t=18264)

linman 2008-03-24 07:56

Something like xdialog
 
Hi Guys,
I'm just curious, is there something like xdialog? I am searching for tool which will help me to ask user where he wants to install a new packet so with xdialog I can use it in pre/post.install scripts to ask him.

Toli

qwerty12 2008-03-24 08:00

Re: Something like xdialog
 
I think you missed this:
http://www.internettablettalk.com/fo...7&postcount=12

:)

linman 2008-03-24 08:14

Re: Something like xdialog
 
I read your answer there. It is a good alternative but maemo-confirm-text is not flexible enough... however if there is not other solution I will use it.

qwerty12 2008-03-24 09:00

Re: Something like xdialog
 
Cough cough, I compiled Xdialog but I don't really get the best result. Saying that, I cannot develop.

http://i28.tinypic.com/2d6qtl2.png

linman 2008-03-24 09:15

Re: Something like xdialog
 
It looks good :) you just do not have button's texts :) so it is not a standard part of base OS distribution and could not be used for installation dialogs... unfortunately.

fredoll 2008-03-24 09:19

Re: Something like xdialog
 
expect ( or expecttk) ?

qwerty12 2008-03-24 09:20

Re: Something like xdialog
 
Quote:

Originally Posted by linman (Post 159367)
It looks good :) you just do not have button's texts :) so it is not a standard part of base OS distribution and could not be used for installation dialogs... unfortunately.

:)

I get errors on running about gtk-font.c . I also believe keyboard input wouldn't work unless you used xkbd or hardware keyboard.

I just did straight compile :). I don't know anything about C and its derivatives :(

But I think free had the same problem with xmms port. Xdialog is pretty light though, only the one executable.

linman 2008-03-24 09:25

Re: Something like xdialog
 
I tried to compile it last hight but without success. Which packets it depends. In my case it fails when checks gtk-config.

qwerty12 2008-03-24 09:31

Re: Something like xdialog
 
Quote:

Originally Posted by linman (Post 159373)
I tried to compile it last hight but without success. Which packets it depends. In my case it fails when checks gtk-config.

It needs gtk-1.2 .

I've packaged the files, bunzip them to a new folder in scratch boxes home, cd to your new folder and run "dpkg -i --force-all *.deb"

Not the most elegant of solutions but ./configure lets you carry on.

I've only included deb files for armel target.

http://www.mediafire.com/?njxbbx6cdyx

Let me know how it goes if you fix it :)

ukki 2008-03-24 09:51

Re: Something like xdialog
 
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.


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

vBulletin® Version 3.8.8