Log in

No account? Create an account
LogJam [entries|archive|friends|userinfo]

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Blocking on music refresh [Apr. 9th, 2006|11:58 pm]
[Current Mood |curiouscurious]
[Current Music |菅野よう子 - Ghost In The Shell: Stand Alone Complex OST 1 (Lithium Flower)]

Would it be a complicated change to have LogJam run the script it invokes to acquire the current music to run in the background? I could probably make the change myself if it won't involve complicated callbacks/interactions with GTK.

From: evan
2006-04-10 04:10 am (UTC)
It's possible, but I think it'd be a bit confusing: if the music took a few seconds to fetch, it'd pop in suddenly...

What's the problem you're looking to solve? Is it that the GUI blocks, or does it really take a long time?
(Reply) (Thread)
From: ex_trurl
2006-04-10 04:19 am (UTC)
I'm trying to solve the problem that if my script is fetching the information over the network rather than the localhost it may block the GUI for a noticably long period depending on how long the SSH session takes build up.

I suppose to be less confusing one could have the little "refresh" arrows on the button "rotate" and the button grey out while it is waiting, and let the rest of the GUI continue.
(Reply) (Parent) (Thread)
From: evan
2006-04-10 06:45 am (UTC)
I think (I can't quite remember right now) I committed a change recently that abstracts the network "throbber" code into a more general "waiting for status" code. That might be easy enough to hack, though it probably will involve some callbacks and GTK stuff and it may not look very good.

Hmm... I'm looking the repo now and I'm not seeing it. Maybe I hadn't committed it yet? Unfortunately, that code is on a machine that's on the other side of the Pacific right now.
(Reply) (Parent) (Thread)
From: ex_trurl
2006-04-10 05:43 pm (UTC)
Okay, I suppose I'll live with it for now since this sounds like it will require more than a couple hours worth of effort, at least, on my part.

Maybe someday.
(Reply) (Parent) (Thread)