Commit Graph

29 Commits

Author SHA1 Message Date
Peter Hutterer
e46a30562f Promote media-session to its own subdirectory
media-session is past the point of being a mere example, let's promote
it out of the subdirectory.

pw-reserve is moved to tools/
2021-09-22 08:53:08 +02:00
Pauli Virtanen
229892d45d pw-uninstalled: set SPA_DATA_DIR + fix meson devenv
Set SPA_DATA_DIR needed for the bluez5 plugin hwdb file in
pw-uninstalled.

Also fix its value for meson devenv.
2021-09-19 18:12:19 +00:00
Frédéric Danis
2055c57436 meson: Allow access to WP tools in uninstalled shell
If WirePlumber is built as a subproject this calls the wireplumber's
`wp-uninstalled.sh` command to be able to run PW and WP commands from
the uninstalled shell.
2021-09-09 11:36:36 +02:00
dreamer
e1036ee0fc set the same builddir as INSTALL.md 2021-06-19 21:19:56 +02:00
Barnabás Pőcze
b433a6920f pw-uninstalled: override ALSA_PLUGIN_DIR 2021-06-04 21:33:00 +02:00
Barnabás Pőcze
afd92a4272 pw-uninstalled: remove pipewire-pulse from library path
The library has been replaced by a PulseAudio server
reimplementation.
2021-06-04 21:33:00 +02:00
Wim Taymans
431bcb6805 pw-uninstalled: set PKG_CONFIG_PATH 2021-06-04 13:53:57 +02:00
Peter Hutterer
265cad2704 pw-uninstalled: set PW_UNINSTALLED=1 so we can adjust the shell
This allows for easy configuration of the shell if we're inside
pw-uninstalled's shell, e.g. PS1="$PS1  ${PW_UNINSTALLED:+🪠}"
2021-05-27 11:27:17 +00:00
Wim Taymans
212c2697e1 pw-uninstalled: print version to silence shellcheck 2021-05-17 10:21:47 +02:00
Wim Taymans
3d2945c641 uninstalled: support -v option
to make 'make shell' work again
2021-05-17 09:42:31 +02:00
Peter Hutterer
c3b87ea4b2 pw-uninstalled: drop handling of VERSION
This functionality was removed in 08543384f1
2021-05-11 07:01:21 +00:00
Andreas Schnebinger
61dd645c63 Fix shellcheck warnings 2021-05-02 10:38:51 +02:00
Ivan
217f93a317 fix: Change script shebang to support non-FHS *NIX systems (e.g NixOS) 2021-02-23 16:23:03 +00:00
dreamer
b35969c706 script depends on bash, set bash with shebang 2021-02-19 14:33:07 +00:00
Be
3b5e040659
pw-uninstalled.sh: use directory of script instead of current dir
This allows running the script from outside the PipeWire source
tree, which is convenient for developing other applications for
use with PipeWire.

Fixes #720
2021-02-12 15:05:34 -06:00
Wim Taymans
fc90a4e48a Implement config/state file handling
Make methods to load_config and load/save state. For now the config
and state directories are the same but it might not be. Implement
the search path for all config/state files as:

  $XDG_CONFIG_HOME/[$prefix]/$name
  $HOME/.config/[$prefix]/$name
  $PIPEWIRE_CONFIG_DIR/pipewire/[$prefix]/$name
  /etc/pipewire/[$prefix]/$name

Make some config files for jack and RT clients. Make pw-cat use the
client-rt config.

Use core state and config management in media-session.
Move all session manager state and config files to the build dir and
set the PIPEWIRE_CONFIG_DIR to this build dir.
2021-02-12 10:25:11 +01:00
Wim Taymans
c605672d43 Implement per client config files
Move the daemon config file loading to a new conf.c file used by
the context to load the configuration. This replaces the module
profiles and some hacks to move properties around.

If there is nothing other specified with $PIPEWIRE_CONFIG_NAME or
a property, the client.conf file is loaded as a fallback.

Update the session manager config file to load the modules via the
config now. Rename the session modules section to another name.

Update pipewire-pulse to also load a specific pulse property file.
This then makes it pssible to assign specific RT priorities for the
pipewire-pulse process.
2021-02-12 10:07:16 +01:00
Wim Taymans
51cc5c328f pw-uninstalled: set config dir 2021-01-14 13:28:23 +01:00
Wim Taymans
2116b4d10a uninstalled: add some comments to variables 2020-08-02 20:18:03 +02:00
Wim Taymans
154f981f97 Add mixer paths and profile-sets as well
So we don't have to rely on pulseaudio installed ones
2020-07-28 12:30:32 +02:00
Florian Klink
d1162f28ef pipewire.conf.in: use absolute path to pipewire-media-session
So pipewire daemon is able to find pipewire-media-session from the
location it's installed to, even when it's not in $PATH.

For the `pw-ininstalled.sh` and `make run` invocations, provide a
`src/daemon/pipewire-uninstalled.conf` that still uses the relative
path, but isn't installed.
2020-06-10 13:20:25 +02:00
Simon McVittie
96eb6e4df8 scripts: Don't add an empty entry to LD_LIBRARY_PATH
LD_LIBRARY_PATH="/path/to/lib:" is interpreted as equivalent to
LD_LIBRARY_PATH="/path/to/lib:.", loading libraries from the current
working directory, which could lead to malicious libraries being loaded
if the current working directory is untrusted. To avoid this, only add
the current LD_LIBRARY_PATH to the new LD_LIBRARY_PATH if it is
actually set.

This commit also single-quotes the interpolated @VARIABLES@ so that
their values can contain shell special characters (other than single
quotes).

Signed-off-by: Simon McVittie <smcv@debian.org>
2020-06-05 13:40:50 +00:00
Wim Taymans
08543384f1 uninstalled: symlinks are not needed anymore 2020-05-01 11:05:08 +02:00
Wim Taymans
bac6bf090c make symlinks to replacement libs for uninstalled script 2020-01-16 13:26:47 +01:00
Wim Taymans
6c8fd3c29d media-session: instal media session
Install the example media-session
Load the media session according to the PATH
Include the example directory in the PATH so we can run the media
session.
2020-01-13 16:27:46 +01:00
Philippe Normand
0d87b32f0e pw-uninstalled: Don't override environment variables
LD_LIBRARY_PATH and GST_PLUGIN_PATH might be set already in the parent shell.
2019-12-15 14:51:15 +00:00
Philippe Normand
efd68e3cc1 pw-uninstalled: Add tools directory to $PATH 2019-12-15 14:34:56 +00:00
Wim Taymans
78444aba4e uninstalled: update uninstalled 2018-10-10 18:04:28 +02:00
Arun Raghavan
dcfe1ac613 meson: Add an uninstalled target and script
This makes it easier to run PipeWire from the build environment
2018-10-10 17:17:17 +02:00