Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch on Startup #41

Closed
Arndorferd opened this issue Mar 16, 2021 · 4 comments
Closed

Launch on Startup #41

Arndorferd opened this issue Mar 16, 2021 · 4 comments
Milestone

Comments

@Arndorferd
Copy link

Arndorferd commented Mar 16, 2021

There may be ways to hack this but a launch on startup feature would be nice for use with raspberry pi as a chromecast alternative. I noticed that in order for it to come fullscreen I also needed to click for it to go fullscreen, the video starts out in a small corner of the server and becomes fullscreen after click. Some kind of optional automation so it starts full screen on startup of pi or at least in startup of server or video would be necessary for any kind of convenience in this regard.

@MayaPosch
Copy link
Owner

The SDL code in NymphCast Server has been refactored significantly over the past months. I have noticed some issues with full-screen mode as well, though most issues should be resolved by now.

Fixing the remaining issues with full-screen are definitely a priority before Beta testing starts. Exact steps to reproduce encountered issues would be most welcome here.

@PureTryOut
Copy link
Contributor

At least with alpha 0.4 the NymphCast server starts up in fullscreen by default. As for starting it by default I just use the provided init script, in my case rc-update add nymphcast. Then it'll autolaunch after a reboot.

@PureTryOut
Copy link
Contributor

I've recently taken an interest in running NymphCast on Plasma Bigscreen installations as well and the init script method wasn't good enough/not what I wanted there. For a device that's purely going to be used as a Chromecast-like device an init script does the job well, but for devices that want to do more than just casting it's good to have the NymphCast server run as the same user as the system in use.

For that purpose I just created a .desktop file which I've put in /etc/xdg/autostart:

[Desktop Entry]
Version=1.0
Name=Nymphcast
Comment=Start Nymphcast
Exec=/usr/bin/nymphcast_server -c /etc/nymphcast/nymphcast_video_config.ini -a /usr/share/nymphcast/apps
Terminal=false
Type=Application
X-KDE-autostart-phase=2

On systemd systems I would recommend looking into systemctl --user instead, but you probably get the idea.

@MayaPosch MayaPosch added this to the v0.1 milestone Feb 11, 2022
@MayaPosch
Copy link
Owner

The installation routine for the systemd unit file provided with NC Server has been changed to run as a (global) user service rather than as a system (root-level) service. This offers the benefits of not using (risky & unneeded) root permissions, and enables the use of graphical content with the same environment and permissions as the currently logged in user.

This has been successfully tested on Manjaro Linux.

For any issues that may still exist with this functionality, please open a new ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants