Re: GNOME minimal

2020-06-10 Thread Alexey Abramov


Pierre Neidhardt  writes:

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

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

-- 
Alexey



Re: GNOME minimal

2020-06-10 Thread Pierre Neidhardt
Pierre Neidhardt  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/


signature.asc
Description: PGP signature


Re: GNOME minimal

2020-06-09 Thread Pierre Neidhardt
Pierre Neidhardt  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/


signature.asc
Description: PGP signature


Re: GNOME minimal

2020-06-09 Thread Alexey Abramov


Pierre Neidhardt  writes:

> Alexey Abramov  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



Re: GNOME minimal

2020-06-09 Thread Alexey Abramov
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



Re: GNOME minimal

2020-06-09 Thread Pierre Neidhardt
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/


signature.asc
Description: PGP signature


Re: GNOME minimal

2020-06-09 Thread Tobias Geerinckx-Rice

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


signature.asc
Description: PGP signature


Re: GNOME minimal

2020-06-09 Thread Tobias Geerinckx-Rice

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


signature.asc
Description: PGP signature


Re: GNOME minimal

2020-06-09 Thread Jonathan Brielmaier
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?