From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joshua Branson Subject: Re: default GNOME desktop background Date: Sat, 09 Nov 2019 11:08:30 -0500 Message-ID: <86mud5qbgh.fsf@dismail.de> References: <5071fa13aad72032b75f757a8f9672cf66a4b8a0.camel@student.tugraz.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50992) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTTI1-0001Y8-6U for guix-devel@gnu.org; Sat, 09 Nov 2019 11:08:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTTHz-0007Dr-Di for guix-devel@gnu.org; Sat, 09 Nov 2019 11:08:41 -0500 Received: from mx2.dismail.de ([159.69.191.136]:29679) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iTTHy-0007CI-Qp for guix-devel@gnu.org; Sat, 09 Nov 2019 11:08:39 -0500 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 7b770ee8 for ; Sat, 9 Nov 2019 17:08:34 +0100 (CET) Received: from smtp2.dismail.de ( [10.240.26.12]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 7b612958 for ; Sat, 9 Nov 2019 17:08:34 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 44f8652b for ; Sat, 9 Nov 2019 17:08:34 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 4958c70f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sat, 9 Nov 2019 17:08:33 +0100 (CET) In-Reply-To: <5071fa13aad72032b75f757a8f9672cf66a4b8a0.camel@student.tugraz.at> (Leo Prikler's message of "Sat, 09 Nov 2019 00:05:39 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Leo Prikler writes: >> I find it strange that the default background in the GNOME DE is a >> plain color instead of one of the backgrounds installed with gnome- >> backgrounds. > So do I, although to me it matters little, since the settings dialogue > is usually the first thing I visit in a freshly installed GNOME. > Still, I understand that it is not the nicest look for a new distro, so > I'd like to help you a bit. > >> I am not exactly sure how to do this the guix-y way to send a patch, >> but the background that gnome uses is the value of the key "picture- >> uri" in the gsettings schema "org.gnome.desktop.background". >> >> So, to get the background you would do: >> gsettings get org.gnome.desktop.background picture-uri >> >> To set it: >> gsettings set org.gnome.desktop.background picture-uri >> "file:///home/me/Pictures/mybg.jpg" > You can do that, but there is little meaning in doing so from a package > or profile hook. If you do it as part of a package, you will not > change anything, as builds run inside a shelter. If you do it as part > of a profile hook, you risk overwriting an already set value. Neither > behaviour is particularly desirable. > >> Can we please set it to one of the pre-installed backgrounds? They >> can be found in ~/.guix_profile/share/backgrounds/gnome. How about >> adwaita-day.jpg? This is the default on most distros I believe. Or if >> someone could give me a couple of pointers how to do this I can send >> a patch. I believe one would just add a post-install command in the >> "gnome-backgrounds" package that calls `gsettings set` with the path. > 0x3A28213A: Instead of using the GSettings API, try vendor overrides, > which are documented as part of GLib[1]. Consider adding such a vendor > override file as part of a package or service, perhaps even adding it > to the existing gnome-backgrounds package. > 0x6339392C: Instead of local paths, you should use store paths. > 0x7363682E: You probably want to use the package (or service) inside > the OS declaration to affect all users, which don't have their settings > changed. > 0x-1: Perhaps instead of adwaita-day.jpg, you'd like to reuse the GRUB > image or the GDM background. Not really sure how to access the latter, > though. I know that at least on my machine I have a grub-image.png file in my store. I don't know if that helps... find /gnu/store -name '*grub-image*' > > Also remember to follow all the packaging/patch guidelines :) > > Regards, > > Leo > > [1] https://developer.gnome.org/gio/stable/GSettings.html > -- Joshua Branson Sent from Emacs and Gnus