Updated to work with root read-only fs

This commit is contained in:
P.M. Kuipers 2023-01-05 13:11:40 +01:00
parent bf256f6b87
commit 30109430d5
3 changed files with 16 additions and 15 deletions

View File

@ -2,6 +2,7 @@
Description=Start Mediaserver
[Service]
Environment="HOME=/tmp"
ExecStart=/usr/bin/startx /usr/sbin/mediaserver
Restart=always
RestartSec=10s

View File

@ -3,15 +3,17 @@
# Copyright (c) 2014 Miqra Engineering
#
import sys, os
import os
import sys
# perform gstreamer imports (python3 style)
import gi
gi.require_version('Gst','1.0')
gi.require_version('GstGL', '1.0')
gi.require_version('GstVideo', '1.0')
from gi.repository import GObject
from gi.repository import Gst, GstGL, GstVideo
from gi.repository import GObject, Gst, GstGL, GstVideo
class BasicPlayer(GObject.GObject):

View File

@ -3,27 +3,25 @@
# Copyright (c) 2021 Miqra Engineering
#
import sys, os
import os
import signal
from optparse import OptionParser
import sys
from collections import OrderedDict
from .resources import Resources
from optparse import OptionParser
# perform gstreamer imports (python3 style)
import gi
from .resources import Resources
gi.require_version('Gst', '1.0')
gi.require_version('Gtk', '3.0')
gi.require_version('GstGL', '1.0')
gi.require_version('GstVideo', '1.0')
gi.require_version('GdkPixbuf', '2.0')
from gi.repository import GObject
from gi.repository import Gst, GstGL, GstVideo
from gi.repository import GdkPixbuf
from gi.repository import GLib, Gio, Gtk, Gdk
from gi.repository import GdkX11
from gi.repository import (Gdk, GdkPixbuf, GdkX11, Gio, GLib, GObject, Gst,
GstGL, GstVideo, Gtk)
Gst.init(None)
@ -36,7 +34,7 @@ from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
# imports from module
from . monitoredplayer import MonitoredPlayer
from .monitoredplayer import MonitoredPlayer
class MediaService(dbus.service.Object):