From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: gnome-tweak-tool tweaks Date: Fri, 10 Jun 2016 14:24:27 +0200 Message-ID: <87ziqt2pvo.fsf@gnu.org> References: <87wpm23l2w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBLUZ-0001TZ-Ru for guix-devel@gnu.org; Fri, 10 Jun 2016 08:24:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBLUV-0007Tp-KF for guix-devel@gnu.org; Fri, 10 Jun 2016 08:24:50 -0400 In-Reply-To: <87wpm23l2w.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Mon, 06 Jun 2016 08:09:11 +0200") 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: Jan Nieuwenhuizen , iyzsong@member.fsf.org Cc: guix-devel@gnu.org Hello! Jan Nieuwenhuizen skribis: > When starting gnome-tweak-tool, it prints a warning > > GLib-GIO-Message: Using the 'memory' GSettings backend. Your setting= s will not be saved or shared with other applications. > > The patch below has gnome-tweak-tool communicate with gsettings instead > of using the `memory. I'm not sending it as a fix yet because=20 > gnome-tweak-tool does not list any themes, as davexunit reported. So does the patch fix something? (Sorry, I=E2=80=99m quite ignorant about GNOMEy things.) > I/O error : Permission denied > I/O error : Permission denied > Failed to write XML file; For permission problems, try rerunning as root I found that string comes from =E2=80=98shared-mime-info=E2=80=99, which is= itself used by the =E2=80=98xdg-mime-database=E2=80=99 hook in (guix profiles) (a hook = that runs when the profile is created to update the MIME database): --8<---------------cut here---------------start------------->8--- static gboolean save_xml_file(xmlDocPtr doc, const gchar *filename, GError = **error) { #if LIBXML_VERSION > 20400 if (xmlSaveFormatFileEnc(filename, doc, "utf-8", 1) < 0) { g_set_error(error, G_FILE_ERROR, G_FILE_ERROR_FAILED, "Failed to write XML file; For permission problems, try rerunning as= root"); return FALSE; } #else --8<---------------cut here---------------end--------------->8--- =E5=AE=8B=E6=96=87=E6=AD=A6: any idea what the problem might be? Perhaps =E2=80=98update-mime-database=E2=80=99 is trying to write to /gnu/store/=E2= =80=A6-something? Also, it=E2=80=99s a problem that =E2=80=98update-mime-database=E2=80=99 re= turns 0 here, as seems to be the case. Thanks, Ludo=E2=80=99.