* bug#35064: gnome-desktop-service-type does not work
@ 2019-03-31 22:53 Luther Thompson
2019-04-01 0:35 ` Jack Hill
0 siblings, 1 reply; 3+ messages in thread
From: Luther Thompson @ 2019-03-31 22:53 UTC (permalink / raw)
To: 35064
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#35064: gnome-desktop-service-type does not work
2019-03-31 22:53 bug#35064: gnome-desktop-service-type does not work Luther Thompson
@ 2019-04-01 0:35 ` Jack Hill
2019-04-01 2:17 ` Luther Thompson
0 siblings, 1 reply; 3+ messages in thread
From: Jack Hill @ 2019-04-01 0:35 UTC (permalink / raw)
To: Luther Thompson; +Cc: 35064-done
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#35064: gnome-desktop-service-type does not work
2019-04-01 0:35 ` Jack Hill
@ 2019-04-01 2:17 ` Luther Thompson
0 siblings, 0 replies; 3+ messages in thread
From: Luther Thompson @ 2019-04-01 2:17 UTC (permalink / raw)
To: Jack Hill; +Cc: 35064-done
On Sun, 31 Mar 2019 20:35:42 -0400 (EDT)
Jack Hill <jackhill@jackhill.us> wrote:
> 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.
Thank you. That seems to work so far.
Luther
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-01 2:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-31 22:53 bug#35064: gnome-desktop-service-type does not work Luther Thompson
2019-04-01 0:35 ` Jack Hill
2019-04-01 2:17 ` Luther Thompson
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.