maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   WANTED: Tiny window-opener (https://talk.maemo.org/showthread.php?t=21809)

Bundyo 2008-07-12 16:53

Re: WANTED: Tiny window-opener
 
You can run it from the menu as a service with the name you give it as a first parameter, that's what i'm initializing it with.

I like your signature :)

qole 2008-07-12 18:19

Re: WANTED: Tiny window-opener
 
I made a new file, /usr/share/dbus-1/services/org.maemobox.bundyo.hostwin.service:

Code:

[D-BUS Service]
Name=IceWM
Exec=/usr/bin/hostwin

Your program no longer complains about being unable to do osso-initialize; there's no errors... but that's the only difference... Should something else happen?

I think the absolute best enhancement you could give me is the ability to run a shell script from within the program. When the shell script returns, the window closes and your program quits.

The second best enhancement would be the ability to have a custom icon associated to the window.

But if you do nothing else, you have helped me immensely!

Bundyo 2008-07-12 18:32

Re: WANTED: Tiny window-opener
 
It wouldn't complain about osso_initialize whenever you give at least one parameter. I'll add the other features whenever my wife gets up and stops Skyping ;)

Bundyo 2008-07-13 12:46

Re: WANTED: Tiny window-opener
 
Redownload the archive - now takes third parameter - a path to start, waits for it to die, then closes. I'm setting an icon with the /usr/share/pixmaps/[first parameter].png, but i think maemo doesn't obey that and instead sets it from the .desktop file. Check older posts for info.

qole 2008-07-13 20:18

Re: WANTED: Tiny window-opener
 
Wow! That is marvellous! Icon works, script executes fast, window closes automatically...

The window text no longer displays, but everything is so fast now, I barely miss it ;)

Bundyo 2008-07-13 20:31

Re: WANTED: Tiny window-opener
 
That's because I'm calling the script before showing the text and its synchronous, so the text shows after closing your script and before closing the program. :) For a very short time.

EDIT: Never wrote a GTK+ application before, if someone cares to give me a hint which signal i should bind to in order to detect that the text is shown, please be welcome :)

qole 2008-07-16 01:59

Re: WANTED: Tiny window-opener
 
Bundyo, could you please make one more change for me?

Either have the text show as soon as the window opens, and before the script is run (that's what I really want), or remove the text parameter, since it doesn't show anyway.

Bundyo 2008-07-16 05:42

Re: WANTED: Tiny window-opener
 
http://bundyo.org/maemo/hostwin_2params.bz2

If i find a way to show the label, I'll make another one.

qole 2008-07-17 09:34

Re: WANTED: Tiny window-opener
 
I'll have to call the next version of Easy Debian the "Bundyo Build" in your honour. ;-)

Bundyo 2008-07-17 10:42

Re: WANTED: Tiny window-opener
 
Heh, no need :)


All times are GMT. The time now is 22:09.

vBulletin® Version 3.8.8