--- Begin Message ---
Subject: |
gnome-desktop-service-type does not work |
Date: |
Sun, 31 Mar 2019 18:53:26 -0400 |
When doing a reconfigure, I got this message:
/home/luther/config.scm:60:10: warning: 'gnome-desktop-service' is deprecated,
use 'gnome-desktop-service-type' instead
So I changed (gnome-desktop-service) to (gnome-desktop-service-type) and got
this error:
guix system: error: failed to load 'config.scm':
/home/luther/config.scm:60:10: Wrong type to apply: #<service-type
gnome-desktop 1bc6280>
That told me that gnome-desktop-service-type is not a function, so I removed
the parentheses and got this error:
---BEGIN---
Backtrace:
13 (primitive-load "/home/luther/.config/guix/current/bin/…")
In guix/ui.scm:
1660:12 12 (run-guix-command _ . _)
In ice-9/boot-9.scm:
829:9 11 (catch _ _ #<procedure 7f49cda519e8 at guix/ui.scm:624…> …)
829:9 10 (catch _ _ #<procedure 7f49cda51a00 at guix/ui.scm:750…> …)
In guix/scripts/system.scm:
1301:8 9 (_)
In guix/status.scm:
810:4 8 (call-with-status-report _ _)
In guix/scripts/system.scm:
1162:6 7 (process-action _ _ _)
In guix/store.scm:
1737:24 6 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/system.scm:
1175:13 5 (_ _)
882:18 4 (perform-action reconfigure #<<operating-system> kerne…> …)
In gnu/system.scm:
842:19 3 (operating-system-derivation _)
In gnu/services.scm:
737:6 2 (instantiate-missing-services _)
In srfi/srfi-1.scm:
466:18 1 (fold #<procedure 7f49c2c19d68 at gnu/services.scm:737…> …)
In gnu/services.scm:
738:27 0 (_ _ _)
gnu/services.scm:738:27: In procedure service-kind: Wrong type argument:
#<service-type gnome-desktop bb1960>
---END---
The manual at System Configuration > Services > Desktop Services says both that
gnome-desktop-service-type is a procedure and a variable of type
gnome-desktop-configuration.
Luther
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#35064: gnome-desktop-service-type does not work |
Date: |
Sun, 31 Mar 2019 20:35:42 -0400 (EDT) |
User-agent: |
Alpine 2.20 (DEB 67 2015-01-07) |
On Sun, 31 Mar 2019, Luther Thompson wrote:
When doing a reconfigure, I got this message:
/home/luther/config.scm:60:10: warning: 'gnome-desktop-service' is deprecated,
use 'gnome-desktop-service-type' instead
So I changed (gnome-desktop-service) to (gnome-desktop-service-type) and got
this error:
guix system: error: failed to load 'config.scm':
/home/luther/config.scm:60:10: Wrong type to apply: #<service-type gnome-desktop
1bc6280>
Luther,
What you need here is (service gnome-desktop-service-type). The service
function will turn the service-type into a service object which is what
you need in this context.
The documentation for service can be found in the manual
<https://www.gnu.org/software/guix/manual/en/html_node/Service-Reference.html#Service-Reference>.
In particular, note that in addition to the service-type service can take
a value (often the configuration for the service). Since
gnome-desktop-service-type has a default value, the value can be omitted.
I've closed the bug, since I think this should work when you replace
(gnome-desktop-service-type) with (service gnome-desktop-service-type),
but please let us know if you have more questions.
Best,
Jack
--- End Message ---