summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* autotools: move source files to a src/ subdirChristophe Fergeau2011-04-0415-12/+12
|
* autotools: add autotools supportChristophe Fergeau2011-04-044-54/+50
|
* README: Add qemu commandline options for vdagentChristophe Fergeau2011-04-041-0/+22
| | | | | | | It's not obvious how qemu should be started so that vdagentd can find its com.redhat.spice.0 virtio device. It's explained at http://spice-space.org/page/Whiteboard/AgentProtocol but is easier to find if it's explained in README too.
* vdagent-x11: Fixup NewValue Property Notify event filteringHans de Goede2011-03-311-7/+7
| | | | | | | | | When we received a NewValue Property Notify event for a property we are not interested in, we would see this as an error, instead we should just ignore the event. In addition this patch also adds a check that the NewValue Property Notify event is send from the window which we are actually interested in.
* Add support for multiple selectionsHans de Goede2011-03-315-187/+364
| | | | Based on the initial patch by Marc-André Lureau <marcandre.lureau@redhat.com>.
* vdagent-x11: don't accept incrementally send targetsHans de Goede2011-03-311-11/+7
| | | | | Since we only have one buffer for incrementally send properties, targets may not be send incrementally!
* vdagent-x11: move freeing of incr data sending buffers out of ↵Hans de Goede2011-03-311-7/+10
| | | | next_selection_request
* vdagent-x11: Add a queue for conversion requestsHans de Goede2011-03-311-20/+69
| | | | | | Allow the client to have multiple outstanding clipboard requests (one per selection) this is a preparation patch for adding support for multiple selections.
* vdagent-x11: Allow use of send_selection_notify with a different eventHans de Goede2011-03-311-27/+32
| | | | | | Allow use of send_selection_notify with a different event then the one on the head of the queue, this is a preparation patch for adding support for multiple selections.
* udscs: Allow passing 2 arguments per message typeHans de Goede2011-03-316-41/+45
|
* x11: add a few helper functions for multi-clipboardMarc-André Lureau2011-03-311-2/+45
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=34878
* x11: request notifications of PRIMARY clipboardMarc-André Lureau2011-03-301-0/+5
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=34878
* x11: get PRIMARY clipboard atomMarc-André Lureau2011-03-301-3/+5
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=34878
* vdagent-x11: Add support for incr. sending of clipboard data (rhbz#690164)Hans de Goede2011-03-301-16/+117
|
* vdagent-x11: ensure no events are pending before returning to the main loopHans de Goede2011-03-301-12/+31
| | | | | | | | | | | | | | Note: Our event loop is only called when there is data to be read from the X11 socket. If events have arrived and have already been read by libX11 from the socket triggered by other libX11 calls from this file, the select for read in the main loop, won't see these and our event loop won't get called! Thus we must make sure that all queued events have been consumed, whenever we return to the main loop. IOW all (externally callable) functions in this file must end with calling XPending and consuming all queued events. Calling XPending when-ever we return to the mainloop also ensures any pending writes are flushed.
* vdagent-x11: Release clipboard on exitHans de Goede2011-03-291-0/+3
|
* vdagent-x11: Fix typo in commentHans de Goede2011-03-291-1/+1
|
* vdagent-x11: add vdagent_x11_next_selection_request helperHans de Goede2011-03-291-8/+10
|
* udscs: Let the read call back take owner ship of the dataHans de Goede2011-03-286-6/+16
| | | | | | This avoids the need to do a memcpy if the read callback wants to keep the data around. This makes the read callback responsible for freeing the buffer.
* vdagent-x11: Only move to next element in selection queue on process_next_reqHans de Goede2011-03-281-5/+11
|
* vdagent-x11: Fix indentationHans de Goede2011-03-281-5/+5
|
* vdagent-virtio-port: properly demultiplex vdagent messages per portHans de Goede2011-03-231-24/+44
| | | | | | | | | Before this patch vdagent-virtio-port was assembling vdagent messages which consist of multiple chunks without looking at the chunk header port attribute. But it is possible to receive a vdagent-message which spans multiple chunks for port 1, and while receiving the chunks for this message, receive an unrelated chunk for port 2. Before this patch that chunk would (wrongly) get added to the message for port2, messing things seriously up.
* vdagent-virtio-port: don't pass the chunk header, only the chunk port nrHans de Goede2011-03-233-4/+4
| | | | | | Don't pass the chunk header, only the chunk port nr, to the read callback, the size part of the chunk header is irrelavant, esp. as the entire vdagent message could have been divided over multiple chunks.
* vdagent-virtio-port: rename port parameter to vportHans de Goede2011-03-233-120/+120
| | | | | | | The chunks being send over the vdagent virtio port are multiplexed and contain a member inside there header called port, rename all port function parameters to vport, since they refer to a vdagent-virtio-port, and not a port in the meaning it has inside of a chunk.
* vdagentd: fix potentially copying more data then a chunk holds when reading ↵Hans de Goede2011-03-231-0/+3
| | | | the header
* vdagent: Add daemonizing support, daemonize by defaultHans de Goede2011-03-171-11/+49
| | | | | | | | | | gnome-session will wait for autostartup "apps" marked with X-GNOME-Autostart-Phase=Initialization to signal they've completed starting or do an exit 0, before continuing with the next startup phase. Since we were doing neither, it would wait for a timeout until continueing causing a noticable delay before gdm showing the greeter, and after login. By daemonizing immediately after startup we avoid this delay without needing to go talk XSMP or something similar.
* vdagentd: Fix a gcc 4.6 warningHans de Goede2011-03-171-1/+1
|
* vdagentd: Don't open virtio port if creating uinput failsHans de Goede2011-03-171-0/+1
| | | | | There is little use in opening the virtio port when uinput creation has failed, since we will exit as soon as control is returned back to the main loop.
* vdagentd: Modprobe uinput from spice-vdagentd.sh initscript (rhbz#688257)Hans de Goede2011-03-171-0/+1
| | | | uinput may be a module and it does not autoload properly on all systems
* vdagentd: Fix closing of logfile in error exit pathsHans de Goede2011-03-171-0/+6
|
* vdagentd: Fix exit value on fork failureHans de Goede2011-03-171-1/+1
|
* Allow changing the resolution through the agent on multi monitor setupsHans de Goede2011-03-071-2/+1
| | | | | Rather then refusing to use the monitor config send by the client at all for multi monitor clients, simply take the info from the first monitor.
* sysv initscript: exit cleanly when not running under spiceHans de Goede2011-01-101-1/+1
| | | | | | Exit with an exit code of 0 (iow everything ok), rather then 6 (lsb: program not configured) when started while not running under a spice enabled vm.
* Put the pid and log files into their own subdirHans de Goede2010-11-193-5/+8
| | | | | | This makes it easier to write an selinux policy for spice-vdagent and allows for adding extra logfiles / sockets in the future without needing a policy change.
* sysv initscript: fix lsb header multi line descriptionHans de Goede2010-11-081-2/+2
|
* Only start spice-vdagentd in runlevel 5Hans de Goede2010-11-011-2/+2
| | | | Having it in runlevels without X is not useful
* Install spice-vdagentd in /usr/sbin not /sbinHans de Goede2010-11-012-2/+2
| | | | | Now that it is no longer launched by a udev rule it does not need to be in /sbin.
* Update .gitignorespice-vdagent-0.6.3Hans de Goede2010-11-011-2/+2
|
* udscs: fix client linked list corruptionHans de Goede2010-11-011-0/+2
|
* Makefile: create dir for vdagentd socketHans de Goede2010-11-011-0/+2
|
* initscript: remove socket before starting the daemonHans de Goede2010-11-011-0/+2
| | | | | This is necessary if the previous daemon crashed (exited without cleaning up behind itself).
* vdagentd: change socket nameHans de Goede2010-11-011-1/+1
| | | | | | | | Having a Unix Domain Socket directly under /tmp is a really bad idea (think symlink attacks). The standard solution for this is to create a subdir under /tmp. But since spice-vdagentd runs as root anyways we might just as well put it in another much safer place. So now the socket is: /var/run/spice-vdagentd/spice-vdagent-sock
* vdagentd: unlink socket on exit rather then startupHans de Goede2010-11-012-8/+2
| | | | This makes sure that the daemon cannot be started twice.
* vdagent-x11: clear pending client clipboard request on clipboard ownership ↵Hans de Goede2010-11-011-9/+15
| | | | change
* vdagentd-x11: Work around a bug in xselHans de Goede2010-11-011-1/+2
| | | | | | | | | | | | | | | | Although ICCCM 2.2. Responsibilities of the Selection Owner: http://tronche.com/gui/x/icccm/sec-2.html#s-2.2 Clearly states (about selection notify events): The owner should set the specified selection, target, time, and property arguments to the values received in the SelectionRequest event. xsel sets the selection notify event target member to the incr atom when it is going to send the clipboard data incremental, rather then setting it to the UTF8_STRING atom (which was the target of the SelectionRequest). Work around this (esp as it is likely other programs may get this wrong too) and accept the incr atom as a valid target in a selection notify event.
* vdagentd: Do not try to get active session on startupHans de Goede2010-10-312-20/+7
| | | | | | | | This will fail when we are started from the initscripts as there won't be an active session (yet). Instead get the active session when the first agent connects (and/or when console kit signals an active session change). Also fix a copy paste error in GetActiveSession logging.
* Switch to a sysv init script for starting spice-vdagentdHans de Goede2010-10-314-5/+121
| | | | | | Starting from udev rules does not work well as we need /tmp and /var/log to be writable when spice-vdagentd *and* starting from udev gives selinux problems when trying to talk to console kit over dbus.
* Fixup desktop file for autostartHans de Goede2010-10-311-1/+3
|
* vdagentd: Fix compiler warningHans de Goede2010-10-311-1/+3
|
* Add COPYING (GPLv3 license text)Hans de Goede2010-10-301-0/+674
|