2014-12-28, 15:30
(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
Code:
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)
Code:
Code:
Imports System.Windows.Forms
Module Module1
Dim pid As Integer
Sub Main()
Dim objProcess As System.Diagnostics.Process
Try
objProcess = New System.Diagnostics.Process()
objProcess.StartInfo.FileName = Application.StartupPath & "\Kodi.exe"
objProcess.StartInfo.Arguments = "--headless -p"
objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
objProcess.Start()
pid = objProcess.Id
System.IO.File.WriteAllText(Application.StartupPath & "\pid.txt", pid)
Catch
End Try
End Sub
End Module