Re: [LAD] Session Handlers and 'level 1' support

From: Nedko Arnaudov <nedko@email-addr-hidden>
Date: Fri Jan 08 2010 - 23:57:52 EET

Rui Nuno Capela <rncbc@email-addr-hidden> writes:

> On Fri, 8 Jan 2010 09:35:01 +0000, Chris Cannam wrote:
>> On Mon, Jan 4, 2010 at 12:03 PM, rosea grammostola wrote:
>>> "When ladish studio is being saved, applications that are run at level
> 1
>>> receive the SIGUSR1 UNIX signal.
>>
>> How does an application indicate that it intends to "run at level 1"?
>>
>
> good question. i'll add another one:
>
> hacking a SIGUSR1 handler is dead-easy, i know, but... how one application
> gets to know which filename to load/save its state from/to in the context
> of ladish level 1 session ?

Use the current filename. If there is no current filename do what you
think is better, either show save as dialog or ignore the signal. Other
possibility is to allow supply of non-existent file path to be used for
first save in the app. Better make it non-default behaviour because it
is somewhat strange if you dont use ladish. I.e. user usually expects
start to fail if project file supplied at commandline does not exist.

-- 
Nedko Arnaudov <GnuPG KeyID: DE1716B0>

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Received on Sat Jan 9 00:15:03 2010

This archive was generated by hypermail 2.1.8 : Sat Jan 09 2010 - 00:15:03 EET