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

Run in background when a different user is signed in #3

Open
jptrsn opened this issue Jan 7, 2019 · 4 comments
Open

Run in background when a different user is signed in #3

jptrsn opened this issue Jan 7, 2019 · 4 comments

Comments

@jptrsn
Copy link

jptrsn commented Jan 7, 2019

This is more of a use question, rather than an issue. Is there any way to set shairport4w to continue to route audio to my speakers when a different user account is signed into windows 10 pro? The scenario is this: I sign into the computer, start shairport4w, and it's working as expected. However, when a different windows user signs into the machine (without me signing out), the audio stream no longer works, as I think their account takes control of the audio output.

How can I set up shairport to maintain a connection to my external speakers? I've set the output device to specifically use the correct audio output in the advanced settings.

(BTW, the same issue happens when playing music from iTunes installed directly on the same machine, it will play songs, but no audio from the selected output device)

@meluvalli
Copy link

I am able to do this with SrvAny.exe.

You can download it from Microsoft. It comes with Windows 2003 Resource Kit. This makes it run as a service.

https://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en

I then point SrvAny to ShairPort4w.exe. You must place the EXE in:
C:\Windows\System32 folder if running x86
and
C:\Windows\SysWOW64 if running on x64 version of windows.

I was NOT able to get the 64bit version of ShairPort4 working with these directions. I had to use the 32-bit version, but it runs on 64-bit as long as you put it in the SysWOW64 folder as instructed.

With current version, the settings are located in the registry under HKU.Default\Software\SharePort4w key.

@auzeonfung
Copy link

auzeonfung commented Jan 23, 2019

Just set up a task with TaskScheduler.

Create a new task (Not the basic tasks).
Be sure you set the task running as SYSTEM by clicking the Change User or Groups button and simply type SYSTEM in textarea.
In the Action tab, select Start a program and choose shairport4w.exe.
In the Trigger tab select As startup if you want to start shairport4w without login in.

Tested on Windows 10. :)

@jptrsn
Copy link
Author

jptrsn commented Feb 10, 2019

I'm getting an error when trying to create the task as system:

An object (User) with the following name cannot be found: "SYSTEM".

Any tips on what I'm doing wrong?

@auzeonfung
Copy link

hi @jptrsn
Make sure you selected the first checkbox(i don't know what it calls in English, maybe is built-in security principals(?) or something like that..) which is in the Object Types dialog.
1

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