GNU bug report logs -
#35064
gnome-desktop-service-type does not work
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35064 in the body.
You can then email your comments to 35064 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#35064
; Package
guix
.
(Sun, 31 Mar 2019 22:54:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Luther Thompson <lutheroto <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sun, 31 Mar 2019 22:54:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Reply sent
to
Jack Hill <jackhill <at> jackhill.us>
:
You have taken responsibility.
(Mon, 01 Apr 2019 00:36:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Luther Thompson <lutheroto <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 01 Apr 2019 00:36:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 35064-done <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-guix <at> gnu.org
:
bug#35064
; Package
guix
.
(Mon, 01 Apr 2019 02:18:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 35064-done <at> debbugs.gnu.org (full text, mbox):
On Sun, 31 Mar 2019 20:35:42 -0400 (EDT)
Jack Hill <jackhill <at> 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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 29 Apr 2019 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 363 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.