Skip to content

[macOS] Gerbera not working via launchctl #37

@rio-redstone

Description

@rio-redstone

I recently installed Gerbera by brew on macOS 26 Tahoe.
Gerbera works well when executing on terminal, like

gerbera --config ~/.config/gerbera/config.xml --logfile /usr/local/var/log/gerbera.log

The gerbera is detected by TV, iPhone or something connected to dlna and it works perfectly.
I can watch my movie files on my Mac.

While a process launched by

launchctl load -w ~/Library/LaunchAgents/gerbera.io.plist

a gerbera is missing in any devices.

I would like to launch gerbera automatically when boot my pc. How can I fix it?

my gerbera.io.plist looks below.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Disabled</key>
	<false/>
	<key>Label</key>
	<string>gerbera.io</string>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/local/bin/gerbera</string>
		<string>--config</string>
		<string>/Users/ryo/.config/gerbera/config.xml</string>
		<string>--logfile</string>
		<string>/usr/local/var/log/gerbera.log</string>
	</array>
	<key>KeepAlive</key>
	<false/>
	<key>RunAtLoad</key>
	<true/>
	<key>EnvironmentVariables</key>
	<dict>
		<key>PATH</key>
		<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin</string>
	</dict>
	<key>WorkingDirectory</key>
	<string>/Users/***</string>
</dict>
</plist>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions