Commit Graph

3210 Commits

Author SHA1 Message Date
Nikita Zlobin a5d878cdc4 gladish: Move help text from code to separate text file 2010-11-28 15:31:20 +05:00
Nikita Zlobin 9e0b654848 Make file reading function common 2010-11-28 15:26:36 +05:00
Nedko Arnaudov 416c65254b ladishd: use app name for a2j ports
This fixes handling of apps that use random alsa client names.
jack-rack for example, by default, uses PID as part of its
alsa client name.

This breaks backward compatibility.
2010-11-22 15:25:59 +02:00
Nedko Arnaudov 4248abe1d7 ladishd: fix use of uninitialized var in ladish_app_supervisor_set_project_name() 2010-11-18 05:10:18 +02:00
Nedko Arnaudov dba04d196e ladishd: save/load project description and notes 2010-11-18 05:07:34 +02:00
Nedko Arnaudov 18e317ff4b ladishd: expose project description and notes over D-Bus 2010-11-18 04:34:47 +02:00
Nedko Arnaudov 86ec7c7fbd ladishd: fix memory leak on room destroy 2010-11-18 03:57:31 +02:00
Nedko Arnaudov 99b1ab0da4 ladishd: set env vars for use in commandlines 2010-11-18 02:59:06 +02:00
Nedko Arnaudov c7d0a6a479 ladishd: the reset of the previous commit 2010-11-18 02:26:56 +02:00
Nedko Arnaudov d027731b18 ladishd: start terminal apps through shell
This will allow expansion of env vars used in commandline to happen
when apps are started in terminal. It already happens when apps are
started without terminal.

This breaks the default title, at least for xterm. For it, it is now
set explicitly.

Starting through shell is not used when there is no '$' in the
commandline. This should minimize the title problems when xterm is not
used.
2010-11-18 02:25:20 +02:00
Nedko Arnaudov a88ec8d69f ladishd: project_name -> vgraph_name (in loader module) 2010-11-18 01:48:36 +02:00
Nedko Arnaudov fb15df6218 ladishd: recent list for studios 2010-11-18 00:48:32 +02:00
Nedko Arnaudov 46528c8874 ladishd: dont log error when the recent store does not exist 2010-11-18 00:48:27 +02:00
Nikita Zlobin 6c4e75c400 proxy: Fix memory leak 2010-11-15 06:05:12 +05:00
Nedko Arnaudov 577194b9e5 gladish: display sha1 and build date in the about box 2010-11-14 23:09:40 +02:00
Nedko Arnaudov f44f92d4f3 wscript: more waf-1.6 related improvements 2010-11-14 21:20:14 +02:00
Nedko Arnaudov ffc3be463e wscript: adjust some stuff that is deprecated in waf-1.6 2010-11-14 19:56:25 +02:00
Nedko Arnaudov 726f4cb642 untabify the wscript 2010-11-14 19:31:50 +02:00
Nedko Arnaudov f76f48f436 waf: fix the include path workaround 2010-11-14 19:27:56 +02:00
Nedko Arnaudov f9142569d9 waf: switch to 1.6.1 2010-11-14 19:20:29 +02:00
Nedko Arnaudov 391cc007cd ladishd: Fix include path
it works with waf-1.5.x for unknown reasons. it does not work
with waf-1.6.1
2010-11-14 16:20:16 +02:00
Nedko Arnaudov d9183f0417 ladishd: fix load of project dict 2010-11-14 16:06:51 +02:00
Nedko Arnaudov 1524a3b43f ladishd: Fix some logs (studio->room) 2010-11-14 16:05:17 +02:00
Nedko Arnaudov 9180fa9047 ladishd: clear project even if room project state is 'unloaded'. Fix for #117
This is a workaround (that was implemented before too). The proper way of handling this is to
create 'unnamed project' when a connection or app is added to the room.
2010-11-14 13:08:25 +02:00
Nedko Arnaudov 36370e2942 ladishd: initialize the vclient_name var even when a2j mapping fails 2010-11-14 00:53:53 +02:00
Nedko Arnaudov 3d40386a14 ladishd: on project load, restore connections between room ports. Fix for #117 2010-11-13 18:32:35 +02:00
Nedko Arnaudov 4b9da6ffae ladishd: do a better cleanup on project unload and on load failure. Partial fix for #117
The project state now is can now have more than one state. The project
unload sequence now first removes all connections, then stopps all
apps, and as last step - clears the graph. When project load fails,
ladish_room_unload_project() is not called anymore, because unloading
of room even without apps is now a multistep process. Instead, a new
function, ladish_room_clear_project(), is introduced. It is called
when project load fails and as last step in project unload.
2010-11-13 18:13:10 +02:00
Nedko Arnaudov a99c3e6408 ladishd: remove unneeded asignment
unescape() receives length that includes the terminating nul char
2010-11-13 15:49:38 +02:00
Nedko Arnaudov 0ff72305db ladishd: nul-terminate strings escaped through escape_simple() 2010-11-13 15:00:08 +02:00
Nedko Arnaudov 3752081d1d ladishd: escape project name when composing project dir from it 2010-11-13 14:46:33 +02:00
Nedko Arnaudov 04b2b17e96 ladishd: project name unescaping 2010-11-13 14:02:20 +02:00
Nedko Arnaudov c0240447c1 ladishd: project name escaping 2010-11-12 07:34:31 +02:00
Nedko Arnaudov 5b8fe165d3 ladishd: max_escaped_length() 2010-11-12 07:15:57 +02:00
Nedko Arnaudov a608c373e6 ladishd: properly handle a2j ports for apps with same names
For real jack ports it works because different apps have different jack client.
For a2j ports, it did not work because the jack client is same and the
a2j_fake_jack_port_name is same too, because the instead of alsa client name,
the app name is used now
2010-11-08 02:39:53 +02:00
Nedko Arnaudov ee830a52ee ladishd: actually remove app ports, simply logging does not make it happen 2010-11-08 02:17:39 +02:00
Nedko Arnaudov bea7c694e0 ladishd: when loading project, search (a2j) the jack client before creating one 2010-11-08 02:08:52 +02:00
Nedko Arnaudov 6c2201b933 ladishd: save [only] relevant a2j ports for the vgraph being saved
For studio saves, save only studio vgraph a2j ports.
For room project saves, save only room vgraph a2j ports.
If there is not a2j ports for the vgraph being saved, an empty a2j client will not be saved anymore
2010-11-08 01:19:02 +02:00
Nedko Arnaudov 8aebce6821 ladishd: remove special a2j handling in remove/is_hidden[_app] virtualizer functions
a2j client has not app associated and thus should never be returned by ladish_graph_find_client_by_app()
This was somewhat possible in past, when the client was searched by name and not by uuid.

Also is_empty var is removed for ladish_graph_find_client_by_app(). For ladish_virtualizer_remove_app(),
the is_empty var is kept, because ladish_graph_client_is_empty() cannot be called after the client is removed
from the jack graph.
2010-11-07 23:43:45 +02:00
Nedko Arnaudov eb866bf6e8 ladishd: save additional attributes for graph objects
For clients, save the naming scheme used. sometimes it is useful to maintain the original jack or alsa client name.

For ports, save port type and direction, alsa ports can be bidirectional, this renders as two a2j ports.
2010-11-07 20:59:20 +02:00
Nedko Arnaudov 79c75fd07b ladishd: properly handle stopping and removal of apps with a2j ports 2010-11-07 19:52:08 +02:00
Nedko Arnaudov 7d3acd7331 ladishd: set vgraph for new ports and use it when port disappears or gets renamed 2010-11-07 19:52:08 +02:00
Nedko Arnaudov f3a59a3561 ladishd: detect alsa client of app and use the app name for corresponding vgraph client 2010-11-07 19:51:51 +02:00
Nedko Arnaudov 222dec63f3 ladishd: improved log when searching for graph port by jack id 2010-11-07 16:40:17 +02:00
Nedko Arnaudov 7b1baf033d ladishd: Use app_uuid for identifying appless clients
* normal jack clients have both app_uuid set and non-zero pid
 * jmcore clients have only non-zero pid, their app_uuid is null
 * clients of unmanaged apps (externally started aps, inprocess clients
   and the a2j client) have zero pid and zero app_uuid
2010-11-06 15:34:54 +02:00
Nedko Arnaudov 2eac623818 ladishd: properly handle ports with same uuids but in different room vgraphs. Fixes #115
Same or derivate project can be loaded in more than one room. This will cause more than one port
with given uuid to be added to the jack graph. This changeset uses vgraph-port_uuid pair when searching
for port that was added at earlier project load stage. For this to work, when ports are created and added
to the jack graph, the vgraph handle is stored in the port object.
2010-11-03 00:29:08 +02:00
Nedko Arnaudov 1b66932459 ladishd: properly detect connect failures
This fixes a bug when port is appearing, connect attempt is made,
connect fails because port has just disappeared, port reappears then
but new connect attempt was not made. Happens quite easily with
wineasio apps that "probe" (nuendo2 for example).
2010-11-01 21:28:28 +02:00
Nedko Arnaudov 9592afef25 alsapid_get_pid() for use in ladishd virtualizer 2010-10-31 10:17:42 +02:00
Nedko Arnaudov bbee2910ce alsapid: replace stale symlinks 2010-10-31 02:13:23 +03:00
Nedko Arnaudov 7d2ebaa433 daemon: run apps with LD_PRELOAD=libalsapid.so 2010-10-31 01:14:14 +03:00
Nedko Arnaudov e9d9baa830 wscript: remove commented libalsapid related code 2010-10-31 00:28:56 +03:00