← 返回命令列表

Linux command

pw-container 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

pw-container

Example

pw-container [command] [arg1] [arg2]

Example

pw-container -r [remote_name] [command]

Example

pw-container -P '{"pipewire.sec.app-id": "[my-app]"}' [command]

Example

pw-container -h

说明

pw-container creates a new security context using the PipeWire SecurityContext extension API. It sets up a temporary Unix socket as a server with the given properties, and clients created from this socket have the security properties attached to them. If a command is specified, it is executed within the new security context. If no command is given, the socket address is printed to standard output. The process does not exit until terminated with a signal (exits 0 on SIGINT/SIGTERM). This is useful for sandboxing applications or running programs with restricted PipeWire access.

参数

-r, --remote _name_
Connect to specific remote PipeWire instance
-P, --properties _json_
Set context properties using JSON object
-h, --help
Display help message

FAQ

What is the pw-container command used for?

pw-container creates a new security context using the PipeWire SecurityContext extension API. It sets up a temporary Unix socket as a server with the given properties, and clients created from this socket have the security properties attached to them. If a command is specified, it is executed within the new security context. If no command is given, the socket address is printed to standard output. The process does not exit until terminated with a signal (exits 0 on SIGINT/SIGTERM). This is useful for sandboxing applications or running programs with restricted PipeWire access.

How do I run a basic pw-container example?

Run `pw-container` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r, --remote _name_ do in pw-container?

Connect to specific remote PipeWire instance