summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* vdagentd: support fake uinputAlon Levy2013-09-033-6/+21
| | | | | | | | This is used with Xspice. Fake means we open a pipe for write only, and don't do any ioctls on it. Specifically it means the axis and buttons have to be coordinated for now with Xspice (xf86-video-qxl). Signed-off-by: Alon Levy <alevy@redhat.com>
* vdagentd: support virtio as uds for Xspice usageAlon Levy2013-09-021-6/+47
| | | | Signed-off-by: Alon Levy <alevy@redhat.com>
* vdagentd: support configurable socket to vdagentAlon Levy2013-09-021-14/+19
| | | | Signed-off-by: Alon Levy <alevy@redhat.com>
* vdagent: add option to change vdagentd socketAlon Levy2013-09-021-2/+7
| | | | Signed-off-by: Alon Levy <alevy@redhat.com>
* vdagent-x11: Turn some error messages into debugging messages (rhbz#918310)Hans de Goede2013-08-131-5/+6
| | | | | | | | Some bad clients, ie autocutsel, don't stick to the icccm spec, causing us to flood the logs with error messages, turn these into debug messages instead, so that they are only shown when debuggging / verbose logging is turned on. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent_x11_target_to_type: Improve error loggingHans de Goede2013-08-081-0/+3
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Not having the virtio channel is not an error; instead silently do nothingColin Walters2013-08-021-3/+1
| | | | | | | | | | | | | | | | | | Fedora for example bundles the SPICE agent by default; however, we don't want to spew an error when running non-virtualized, or with plain VNC. Let's just silently exit; while we could change LOG_ERR -> LOG_INFO or something, that's still pointless noise in most people's syslog. Someone who was debugging a misconfigured SPICE setup would pretty quickly notice that they were missing the virtio port. (This patch is part of a larger initiative to reduce error spew on default startup in common deployment scenarios such as KVM+VNC.) Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Fix vdagent-x11.h header guard nameFedor Lyakhov2013-07-291-2/+2
|
* vdagentd: Advertise VD_AGENT_CAP_GUEST_LINEEND_LFHans de Goede2013-06-241-0/+1
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent[d]: Add printing of version to -h outputHans de Goede2013-06-062-5/+5
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Fix typo in src/vdagentd.cLiang Guo2013-04-121-1/+1
| | | | Signed-off-by: Liang Guo <guoliang@debian.org>
* Add missing src/dummy-session-info.c fileHans de Goede2013-04-121-0/+46
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* One more -h / usage output fixHans de Goede2013-04-121-1/+1
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Improve -h / usage outputHans de Goede2013-04-112-7/+11
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagentd: Allow runtime disabling of session-info (rhbz#904084)Hans de Goede2013-04-113-77/+53
| | | | | | | | | | Add spice-vdagent -X cmdline option, which runtime disables console-kit / systemd-logind integration for setups where these are not used. This is useful for using pre-build binaries (ie distro binaries) in such setups. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagentd-xorg-conf: Add Option "NumHeads" "1" to generated xorg.confHans de Goede2013-04-111-0/+1
| | | | | | | So that we don't get multiple heads per device on revision 4 qxl devices in Xinerama setups. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-x11: Add support for setups with multiple screensHans de Goede2013-04-103-25/+57
| | | | | | | | | | | | | | Some users have a need for old-fashioned setups with multiple X11 Screens rather then one large virtual Screen as modern X usually has. This can be accomplished by using multiple qxl devices + a xorg.conf file assigning one Screen per qxl device. Limitations: -Max one monitor per Screen / qxl device -All monitors / Screens must have the same resolution -No client -> guest resolution syncing Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-x11: Change root_window, width and height to an arrayHans de Goede2013-04-103-37/+36
| | | | | | | This is a preparation patch for handling setups where there are multiple qxl-devices each mapped to a separate screen. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Add glib-compat.h to fix building with glib < 2.28Hans de Goede2013-04-102-0/+44
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-x11: Catch BadWindow errors when sending clipboard data to other windowsHans de Goede2013-04-091-8/+36
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-x11: Unify / share error handling between vdagent-x11 and randr codeHans de Goede2013-04-093-34/+29
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent: Open file xfer save dir on file xfer completionHans de Goede2013-04-093-6/+32
| | | | | | | | | | When not saving to the Desktop we need a way for the user to discover where we've saved the file. This patch makes the session agent call xdg-open on the file xfer save dir when a file xfer has completed in this case. This is configurable from the cmdline by passing "-o 0" or "-o 1" Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent: Add a cmdline option to select where to save file-xfersHans de Goede2013-04-093-18/+38
| | | | | | | | | | The user can pass any arbitrary directory or the special values of "xdg-desktop" or "xdg-download" to select the default xdg Desktop resp xdg Download directories. If no value is specified the default is xdg-desktop when running under a Desktop Environment which has icons on the desktop and xdg-download on other Desktop Environments. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-x11: Add a vdagent_x11_has_icons_on_desktop functionHans de Goede2013-04-092-0/+29
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-x11: Add a vdagent_x11_get_wm_name functionHans de Goede2013-04-092-4/+84
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-x11: Add set_error_handler / restore_error_handler helpersHans de Goede2013-04-091-2/+21
| | | | | | This is #if 0-ified for now, to avoid breaking compilation with -Werror. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* systemd-login: Fix supression of ENOENT errorsHans de Goede2013-03-291-1/+1
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Don't warn if we cannot find a file-xferHans de Goede2013-03-291-1/+2
| | | | | | | | If we cancel a file-xfer from the agent side, it is normal that there still are some data packets belongen to this xfer in the pipe. So don't warn about it, instead make this a debug message. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-virtio-port: Improve error loggingHans de Goede2013-03-151-2/+4
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent*: Handle VDAGENTD_CLIENT_DISCONNECTED messagesHans de Goede2013-03-064-11/+41
| | | | | | | | Also add some extra detection for the client having gone away for when running on an older spice-server which does not send VDAGENTD_CLIENT_DISCONNECTED on client disconnect. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagentd: Track which file-xfer id belongs to which session-agentHans de Goede2013-03-061-12/+61
| | | | | | | | So that file-xfers which are still on progress on user-switch keep working, and so that vdagentd can send the client a file-xfer cancel if the per-session vdagent goes away while a file-xfer is active. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Fix unlinking of files on error / cancelHans de Goede2013-03-061-3/+3
| | | | | | | Store the complete path, rather then just the basename in task->file_name, so that unlinking on error actually works. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Handle writing errorsHans de Goede2013-03-061-16/+18
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Report status to sender (the client) on xfer completionHans de Goede2013-03-061-2/+7
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Create dir before trying to create the fileHans de Goede2013-03-061-3/+12
| | | | | | This is necesarry to allow the client to send folder-hierarchies. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-virtio-port: Add vdagent_virtio_port_reset()Hans de Goede2013-03-062-0/+11
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent-virtio-port: Fix use after freeHans de Goede2013-03-061-0/+2
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* vdagent: Don't try to reconnect when not daemonizedHans de Goede2013-03-061-1/+1
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Check for duplicate task idsHans de Goede2013-02-221-0/+6
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Don't overwrite existing filesHans de Goede2013-02-221-7/+23
| | | | | | Instead postfix " (x)" until we have a unique filename. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* filex-xfers s/GINT_TO_POINTER/GUINT_TO_POINTER/Hans de Goede2013-02-221-3/+3
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: s/new/task/Hans de Goede2013-02-221-13/+13
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: unlink the (partial) file on cancel / errorHans de Goede2013-02-221-8/+11
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Improve debug loggingHans de Goede2013-02-223-34/+54
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Prefix all log messages with "file-xfer"Hans de Goede2013-02-221-15/+24
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfers: Move file xfer code to its own fileHans de Goede2013-02-223-164/+272
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* file-xfer: Add file-xfer support for linux agentriegamaths@gmail.com2013-02-212-0/+216
| | | | | | The patch makes linux agent support file-xfer feature. Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
* file-xfer: extend protocol for communication between server and clientriegamaths@gmail.com2013-02-212-0/+6
| | | | | | The new added messages correspond with vd_agent.h Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
* randr: Use xrandr to get monitor info for uinput when using XrandrHans de Goede2013-02-043-8/+31
| | | | | | | | Unlike the comment this commit removes claims, the info is not the same. When the monitor settings are "sparse", ie monitor 1 and 3 are enabled, then Xinerama will report this as a continous range ie monitor 1 and 2 are enabled. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* randr: Refactor send_daemon_guest_xorg_res()Hans de Goede2013-02-041-14/+22
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>