all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* GNOME minimal
@ 2020-06-09 12:21 Pierre Neidhardt
  2020-06-09 12:30 ` Jonathan Brielmaier
  2020-06-09 12:43 ` Tobias Geerinckx-Rice
  0 siblings, 2 replies; 13+ messages in thread
From: Pierre Neidhardt @ 2020-06-09 12:21 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 2134 bytes --]

Hi!

I've defined a minimal GNOME this way:

--8<---------------cut here---------------start------------->8---
(define-public gnome-minimal
  (package
    (inherit gnome)
    (name "gnome-minimal")
    (propagated-inputs
     ;; Keep nautilus.
     (fold alist-delete (package-propagated-inputs gnome)
           '("baobab"
             "cheese"
             "eog"
             "epiphany"
             "evince"                   
             "file-roller"
             "gedit"
             "gnome-boxes"
             "gnome-calculator"
             "gnome-calendar"
             "gnome-characters"
             "gnome-clocks"
             "gnome-contacts"
             "gnome-disk-utility"
             "gnome-font-viewer"
             "gnome-maps"
             ;; "gnome-music"
             ;; "gnome-photos"
             "gnome-screenshot"
             "gnome-system-monitor"
             "gnome-terminal"
             "gnome-weather"
             "simple-scan"
             "totem")))))
--8<---------------cut here---------------end--------------->8---

Then I modified my GNOME service:

--8<---------------cut here---------------start------------->8---
(operating-system
 ...
 (services (cons* (service gnome-desktop-service-type
                             (gnome-desktop-configuration
                              (gnome gnome-minimal)))
                    %my/services))
--8<---------------cut here---------------end--------------->8---

But building it fails with

--8<---------------cut here---------------start------------->8---
Backtrace:
           1 (primitive-load "/home/ambrevar/.config/guix/current/bin/guix")
In guix/ui.scm:
  1945:12  0 (run-guix-command _ . _)

guix/ui.scm:1945:12: In procedure run-guix-command:
Throw to key `match-error' with args `("match" "no matching pattern" #f)'.
--8<---------------cut here---------------end--------------->8---

Any idea?

As a side note, would it make sense to include it in Guix?
Maybe just include the above example in the documentation?

Cheers!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 12:21 GNOME minimal Pierre Neidhardt
@ 2020-06-09 12:30 ` Jonathan Brielmaier
  2020-06-09 12:53   ` Tobias Geerinckx-Rice
  2020-06-09 12:43 ` Tobias Geerinckx-Rice
  1 sibling, 1 reply; 13+ messages in thread
From: Jonathan Brielmaier @ 2020-06-09 12:30 UTC (permalink / raw)
  To: guix-devel

On 09.06.20 14:21, Pierre Neidhardt wrote:
> Hi!
>
> I've defined a minimal GNOME this way:
>
> --8<---------------cut here---------------start------------->8---
> (define-public gnome-minimal
>   (package
>     (inherit gnome)
>     (name "gnome-minimal")
>     (propagated-inputs
>      ;; Keep nautilus.
>      (fold alist-delete (package-propagated-inputs gnome)
>            '("baobab"
>              "cheese"
>              "eog"
>              "epiphany"
>              "evince"
>              "file-roller"
>              "gedit"
>              "gnome-boxes"
>              "gnome-calculator"
>              "gnome-calendar"
>              "gnome-characters"
>              "gnome-clocks"
>              "gnome-contacts"
>              "gnome-disk-utility"
>              "gnome-font-viewer"
>              "gnome-maps"
>              ;; "gnome-music"
>              ;; "gnome-photos"
>              "gnome-screenshot"
>              "gnome-system-monitor"
>              "gnome-terminal"
>              "gnome-weather"
>              "simple-scan"
>              "totem")))))
> --8<---------------cut here---------------end--------------->8---

So this is basically a plain Gnome shell withouth any programms? What is
the use-case for it?


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 12:21 GNOME minimal Pierre Neidhardt
  2020-06-09 12:30 ` Jonathan Brielmaier
@ 2020-06-09 12:43 ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 13+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-06-09 12:43 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

Pierre,

Pierre Neidhardt 写道:
> guix/ui.scm:1945:12: In procedure run-guix-command:
> Throw to key `match-error' with args `("match" "no matching 
> pattern" #f)'.
> --8<---------------cut 
> here---------------end--------------->8---
>
> Any idea?

My immediate thought is: #f is what (assoc-ref l 
"non-existent-thing") returns.

And indeed:

(define (gnome-polkit-settings config)
  "Return the list of GNOME dependencies that provide polkit 
  actions and
rules."
  (let ((gnome (gnome-package config)))
    (map (lambda (name)
           ((package-direct-input-selector name) gnome))
         '("gnome-settings-daemon"
           "gnome-control-center"
           "gnome-system-monitor"
           "gvfs"))))


You need to include gnome-system-monitor, or adjust the service 
too.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 12:30 ` Jonathan Brielmaier
@ 2020-06-09 12:53   ` Tobias Geerinckx-Rice
  2020-06-09 13:24     ` Pierre Neidhardt
  2020-06-09 14:09     ` Pierre Neidhardt
  0 siblings, 2 replies; 13+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-06-09 12:53 UTC (permalink / raw)
  To: Jonathan Brielmaier; +Cc: guix-devel, mail

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

Jonathan Brielmaier 写道:
> So this is basically a plain Gnome shell withouth any programms? 
> What is
> the use-case for it?

s/without any programmes/with the programmes you actually choose 
to install/

‘gnome-desktop’ is a maximal beast, and is only going to get more 
so as Raghav's work progresses.  I don't think Guix should ship a 
‘gnome-minimal’ package (nor am I fiercely opposed), but it makes 
sense to modify things like gnome-polkit-settings to handle only 
keys that are actually present and ignore #f.

I presume that's what Pierre is doing right now; we'll see :-)

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 12:53   ` Tobias Geerinckx-Rice
@ 2020-06-09 13:24     ` Pierre Neidhardt
  2020-06-09 13:57       ` Alexey Abramov
  2020-06-10  6:22       ` Pierre Neidhardt
  2020-06-09 14:09     ` Pierre Neidhardt
  1 sibling, 2 replies; 13+ messages in thread
From: Pierre Neidhardt @ 2020-06-09 13:24 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, Jonathan Brielmaier; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]

Thanks, Tobias!

The definition below builds in a system, I haven't tried booting it yet:

--8<---------------cut here---------------start------------->8---
(define-public gnome-minimal
  (package
    (inherit gnome)
    (name "gnome-minimal")
    (propagated-inputs
     ;; Keep nautilus.
     (fold alist-delete (package-propagated-inputs gnome)
           '(;; GNOME-Core-Shell
             "gnome-backgrounds"
             "gnome-themes-extra"
             "gnome-getting-started-docs"
             "gnome-user-docs"
             ;; GNOME-Core-Utilities
             "baobab"
             "cheese"
             "eog"
             "epiphany"
             "evince"             ; REVIEW: Keep for gnome-default-applications?
             "file-roller"
             "gedit"
             "gnome-boxes"
             "gnome-calculator"
             "gnome-calendar"
             "gnome-characters"
             "gnome-clocks"
             "gnome-contacts"
             "gnome-disk-utility"
             "gnome-font-viewer"
             "gnome-maps"
             ;; "gnome-music"
             ;; "gnome-photos"
             "gnome-screenshot"
             ;; "gnome-system-monitor" ; Needed for gnome-polkit-settings
             "gnome-terminal"
             "gnome-weather"
             "simple-scan"
             "totem"
             ;; Others
             "gnome-online-accounts")))))
--8<---------------cut here---------------end--------------->8---

It saves close to 500 MiB in the closure size!  Not bad :)

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 13:24     ` Pierre Neidhardt
@ 2020-06-09 13:57       ` Alexey Abramov
  2020-06-09 14:05         ` Pierre Neidhardt
  2020-06-10  6:22       ` Pierre Neidhardt
  1 sibling, 1 reply; 13+ messages in thread
From: Alexey Abramov @ 2020-06-09 13:57 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: guix-devel

Hi Pierre,

Do you consider gnome-keyring to be a part of gnome-minimal? If you do, gcr -
gnome keyring prompter should also be added. 

-- 
Alexey


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 13:57       ` Alexey Abramov
@ 2020-06-09 14:05         ` Pierre Neidhardt
  2020-06-09 14:28           ` Alexey Abramov
  0 siblings, 1 reply; 13+ messages in thread
From: Pierre Neidhardt @ 2020-06-09 14:05 UTC (permalink / raw)
  To: Alexey Abramov; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

Alexey Abramov <levenson@mmer.org> writes:

> Do you consider gnome-keyring to be a part of gnome-minimal?

I would say yes, but that's debatable of course :p

> If you do, gcr - gnome keyring prompter should also be added.

Are you saying the gnome-keyring won't work without gcr?  Why?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 12:53   ` Tobias Geerinckx-Rice
  2020-06-09 13:24     ` Pierre Neidhardt
@ 2020-06-09 14:09     ` Pierre Neidhardt
  2020-06-09 14:30       ` Pierre Neidhardt
  1 sibling, 1 reply; 13+ messages in thread
From: Pierre Neidhardt @ 2020-06-09 14:09 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, Jonathan Brielmaier; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 821 bytes --]

Tobias Geerinckx-Rice <me@tobias.gr> writes:

> Jonathan Brielmaier 写道:
>> So this is basically a plain Gnome shell withouth any programms? 
>> What is
>> the use-case for it?

Jonathan: I didn't receive your emails (not the first time), only
Tobias' quote.

My personal use-case: I use EXWM most of the times, but it's nice to
have an extra desktop environment for:

- Testing software in a different environment, e.g. XDG integration,
  etc.
- Making FOSDEM presentations :)  (Works for other presentations too!)
- Letting non-techie friends use my system.

For the above I don't need any GNOME program but GNOME shell and Nautilus.

A lighter system has the benefits of:

- being easier on Internet bandwidth,
- updating faster.

Cheers!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 14:05         ` Pierre Neidhardt
@ 2020-06-09 14:28           ` Alexey Abramov
  2020-06-09 14:40             ` Pierre Neidhardt
  0 siblings, 1 reply; 13+ messages in thread
From: Alexey Abramov @ 2020-06-09 14:28 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: guix-devel


Pierre Neidhardt <mail@ambrevar.xyz> writes:

> Alexey Abramov <levenson@mmer.org> writes:
>
>> Do you consider gnome-keyring to be a part of gnome-minimal?
>
> I would say yes, but that's debatable of course :p
>
>> If you do, gcr - gnome keyring prompter should also be added.
>
> Are you saying the gnome-keyring won't work without gcr?  Why?

I think it will, with some low level stuff, but I couldn't use it or even unlock it. Maybe there are other SystemPromters out there.

--8<---------------cut here---------------start------------->8---
May 31 20:32:02 localhost gnome-keyring-daemon[2992]: couldn't create system prompt: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.keyring.SystemPrompter was not provided by any .service files
May 31 20:32:24 localhost gnome-keyring-daemon[2992]: couldn't create system prompt: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.keyring.SystemPrompter was not provided by any .service files
May 31 20:42:19 localhost gnome-keyring-daemon[2992]: couldn't create system prompt: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.keyring.SystemPrompter was not provided by any .service files
--8<---------------cut here---------------end--------------->8---

--
Alexey


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 14:09     ` Pierre Neidhardt
@ 2020-06-09 14:30       ` Pierre Neidhardt
  0 siblings, 0 replies; 13+ messages in thread
From: Pierre Neidhardt @ 2020-06-09 14:30 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, Jonathan Brielmaier; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

Pierre Neidhardt <mail@ambrevar.xyz> writes:

> A lighter system has the benefits of:
>
> - being easier on Internet bandwidth,
> - updating faster.

And obviously lighter and disk space! ;)

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 14:28           ` Alexey Abramov
@ 2020-06-09 14:40             ` Pierre Neidhardt
  2020-06-10 13:45               ` Alexey Abramov
  0 siblings, 1 reply; 13+ messages in thread
From: Pierre Neidhardt @ 2020-06-09 14:40 UTC (permalink / raw)
  To: Alexey Abramov; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

Looks like a bug in our gnome-keyring package definition.
Could you file this issue at bug-guix@gnu.org?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 13:24     ` Pierre Neidhardt
  2020-06-09 13:57       ` Alexey Abramov
@ 2020-06-10  6:22       ` Pierre Neidhardt
  1 sibling, 0 replies; 13+ messages in thread
From: Pierre Neidhardt @ 2020-06-10  6:22 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, Jonathan Brielmaier; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

Pierre Neidhardt <mail@ambrevar.xyz> writes:

> The definition below builds in a system, I haven't tried booting it yet:

Just tried it, it works!
But Evince remains pulled in, I suspect because of gnome-default-applications.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GNOME minimal
  2020-06-09 14:40             ` Pierre Neidhardt
@ 2020-06-10 13:45               ` Alexey Abramov
  0 siblings, 0 replies; 13+ messages in thread
From: Alexey Abramov @ 2020-06-10 13:45 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: guix-devel


Pierre Neidhardt <mail@ambrevar.xyz> writes:

> Looks like a bug in our gnome-keyring package definition.
> Could you file this issue at bug-guix@gnu.org?

Done. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41789

-- 
Alexey


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-06-10 13:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-09 12:21 GNOME minimal Pierre Neidhardt
2020-06-09 12:30 ` Jonathan Brielmaier
2020-06-09 12:53   ` Tobias Geerinckx-Rice
2020-06-09 13:24     ` Pierre Neidhardt
2020-06-09 13:57       ` Alexey Abramov
2020-06-09 14:05         ` Pierre Neidhardt
2020-06-09 14:28           ` Alexey Abramov
2020-06-09 14:40             ` Pierre Neidhardt
2020-06-10 13:45               ` Alexey Abramov
2020-06-10  6:22       ` Pierre Neidhardt
2020-06-09 14:09     ` Pierre Neidhardt
2020-06-09 14:30       ` Pierre Neidhardt
2020-06-09 12:43 ` Tobias Geerinckx-Rice

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.