(2014-12-27 16:03)fma965 Wrote: Doesn't work for windows, just built it from source and tried /headless --headless -headless etc but nothing, the GUI still loads up. Great work though.
EDIT: since i did this at stupid o clock i think i forgot to select the helix_headless branch, will try again with the correct branch xD
OK built it again but just get this
not using much cpu but obviously it's also not hidden, but i can work with this by creating a custom service wrapper application
webui etc is working so assume most features are working
The modified windows build can be downloaded here - http://cyanlabs.net/files/Kodi.exe
When trying to wrap it as a service i get this
14:00:44 T:5148 FATAL: CApplication::Create: Unable to init windowing system
Now this makes sense but any ideas how i could stop it?
EDIT: Here is a wrapper which hides the window so it runs hidden. http://cyanlabs.net/files/KodiWrapper.exe
(put it in same folder as Kodi.exe) (runs portable and headless -p -headless)
Dim pid As Integer
Dim objProcess As System.Diagnostics.Process
objProcess = New System.Diagnostics.Process()
objProcess.StartInfo.FileName = Application.StartupPath & "\Kodi.exe"
objProcess.StartInfo.Arguments = "--headless -p"
objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
pid = objProcess.Id
System.IO.File.WriteAllText(Application.StartupPath & "\pid.txt", pid)