Signed-off-by: Alon Levy <alevy@xxxxxxxxxx> --- examples/spiceqxl.xorg.conf.example | 3 ++- scripts/Xspice | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/spiceqxl.xorg.conf.example b/examples/spiceqxl.xorg.conf.example index d1129e7..be8a16b 100644 --- a/examples/spiceqxl.xorg.conf.example +++ b/examples/spiceqxl.xorg.conf.example @@ -111,7 +111,8 @@ Section "Device" # If a directory is given, any file in that # directory will be read for audio data to be sent # to the client. Default is no mixing. - #Option "SpicePlaybackFIFODir" "" + #Option "SpicePlaybackFIFODir" "/tmp/" + EndSection Section "InputDevice" diff --git a/scripts/Xspice b/scripts/Xspice index 221f4db..a4eb647 100755 --- a/scripts/Xspice +++ b/scripts/Xspice @@ -90,6 +90,7 @@ parser.add_argument('--vdagent-uinput-path', default='/tmp/xspice-uinput', help= parser.add_argument('--vdagentd-exec', default='spice-vdagentd') parser.add_argument('--vdagent-exec', default='spice-vdagent') parser.add_argument('--vdagent-no-launch', default=True, action='store_false', dest='vdagent_launch') +parser.add_argument('--audio-fifo-dir', default='') #TODO #Option "SpiceAddr" "" @@ -174,10 +175,15 @@ if args.auto: cleanup_files.append(cf.name + ".log") args.config = cf.name xorg_args = [ '-logfile', cf.name + ".log" ] + xorg_args + if args.audio_fifo_dir: + options = 'Option "SpicePlaybackFIFODir" "%s"' % args.audio_fifo_dir + else: + options = '' cf.write(""" Section "Device" Identifier "XSPICE" Driver "spiceqxl" + %(options)s EndSection Section "InputDevice" @@ -213,7 +219,7 @@ Section "ServerFlags" EndSection - """) + """ % locals()) cf.flush() var_args = ['port', 'tls_port', 'disable_ticketing', -- 1.8.3.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel