;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 David Craven ;;; Copyright © 2017 Clément Lassieur ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu services spice) #:use-module (gnu packages spice) #:use-module (gnu services) #:use-module (gnu services shepherd) #:use-module (guix gexp) #:use-module (guix records) #:export (spice-vdagent-configuration spice-vdagent-configuration? spice-vdagent-service-type spice-vdagent-service)) (define-record-type* spice-vdagent-configuration make-spice-vdagent-configuration spice-vdagent-configuration? (spice-vdagent spice-vdagent-configuration-spice-vdagent (default spice-vdagent))) (define (spice-vdagent-shepherd-service config) "Return a for spice-vdagentd with CONFIG." (define spice-vdagent (spice-vdagent-configuration-spice-vdagent config)) (define spice-vdagentd-command (list (file-append spice-vdagent "/sbin/spice-vdagentd") "-x")) (list (shepherd-service (documentation "Spice vdagentd service") (requirement '(dbus-system)) (provision '(spice-vdagentd)) (start #~(lambda args ;; spice-vdagentd supports being activated upon the client ;; connecting to its socket; when not using such feature, the ;; socket should not exist before vdagentd creates it itself. (mkdir-p "/run/spice-vdagentd") (false-if-exception (delete-file "/run/spice-vdagentd/spice-vdagent-sock")) (fork+exec-command '#$spice-vdagentd-command))) (stop #~(make-kill-destructor))))) (define spice-vdagent-profile (compose list spice-vdagent-configuration-spice-vdagent)) (define spice-vdagent-service-type (service-type (name 'spice-vdagent) (default-value (spice-vdagent-configuration)) (extensions (list (service-extension shepherd-root-service-type spice-vdagent-shepherd-service) (service-extension profile-service-type spice-vdagent-profile))))) (define* (spice-vdagent-service #:optional (config (spice-vdagent-configuration))) "Start the @command{vdagentd} and @command{vdagent} daemons from @var{spice-vdagent} to enable guest window resizing and clipboard sharing." (service spice-vdagent-service-type config)) 2'>12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
# List of source files which contain translatable strings.  These should be
# only package modules (currently it's only a subset of them, but eventually
# all of them should be listed here.)  Strings of the tools are in 'po/guix'.
gnu/packages/abiword.scm
gnu/packages/aspell.scm
gnu/packages/audio.scm
gnu/packages/backup.scm
gnu/packages/base.scm
gnu/packages/bittorrent.scm
gnu/packages/certs.scm
gnu/packages/compression.scm
gnu/packages/databases.scm
gnu/packages/debug.scm
gnu/packages/dejagnu.scm
gnu/packages/games.scm
gnu/packages/gcc.scm
gnu/packages/gettext.scm
gnu/packages/gimp.scm
gnu/packages/gnome.scm
gnu/packages/gnuzilla.scm
gnu/packages/gtk.scm
gnu/packages/guile.scm
gnu/packages/imagemagick.scm
gnu/packages/image.scm
gnu/packages/image-viewers.scm
gnu/packages/inkscape.scm
gnu/packages/jemalloc.scm
gnu/packages/key-mon.scm
gnu/packages/less.scm
gnu/packages/lesstif.scm
gnu/packages/libreoffice.scm
gnu/packages/linux.scm
gnu/packages/lout.scm
gnu/packages/messaging.scm
gnu/packages/mpd.scm
gnu/packages/netpbm.scm
gnu/packages/nettle.scm
gnu/packages/networking.scm
gnu/packages/pdf.scm
gnu/packages/pem.scm
gnu/packages/perl.scm
gnu/packages/photo.scm
gnu/packages/ratpoison.scm
gnu/packages/readline.scm
gnu/packages/scanner.scm
gnu/packages/scheme.scm
gnu/packages/search.scm
gnu/packages/serveez.scm
gnu/packages/shells.scm
gnu/packages/telephony.scm
gnu/packages/tex.scm
gnu/packages/texinfo.scm
gnu/packages/textutils.scm
gnu/packages/version-control.scm
gnu/packages/virtualization.scm
gnu/packages/webkit.scm
gnu/packages/web.scm
gnu/packages/wordnet.scm
gnu/packages/xiph.scm
gnu/services/base.scm
gnu/services/certbot.scm
gnu/services/file-sharing.scm
gnu/services/networking.scm
gnu/services/version-control.scm