all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "P. p. phalantha" <ningyuan.sg@gmail.com>, 62496@debbugs.gnu.org
Subject: bug#62496: For network-manager-applet's nm-connection-editor, libnma needs to be installed
Date: Thu, 30 Mar 2023 16:11:44 -0400	[thread overview]
Message-ID: <87tty2yp6n.fsf@gmail.com> (raw)
In-Reply-To: <87mt3v7k66.fsf@gnu.org> ("Ludovic Courtès"'s message of "Wed, 29 Mar 2023 15:37:37 +0200")

Hi,

Ludovic Courtès <ludo@gnu.org> writes:

> Hello,
>
> "P. p. phalantha" <ningyuan.sg@gmail.com> skribis:
>
>> Invoking nm-connection-editor from the command line and repeating these
>> steps gave the informative error message:
>>
>> ```
>> (nm-connection-editor:1751): GLib-GIO-ERROR **: 02:02:58.502: Settings
>> schema 'org.gnome.nm-applet.eap' is not installed
>> Trace/breakpoint trap
>> ```
>>
>> I found a fix via the installation of libnma, thanks to a 2012 thread on
>> LinuxQuestions.org:
>> https://www.linuxquestions.org/questions/slackware-14/network-manager-applet-1-16-0-i586-1-package-is-missing-%27org-gnome-nm-applet%27-schema-4175670946/.
>> After the installation of libnma I was able to successfully add the network.
>
> I experienced this problem just today and your bug report was helpful!
>
> Actually, both libnma and network-manager-applet provide the relevant
> schema file, but they’re different:
>
> $ find $(guix build libnma) -name \*nm-applet\*
> /gnu/store/hh0mq79nqhcwkpx7v68dibcv9lbha7sn-libnma-1.10.2/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
> $ diff -u /gnu/store/9hl2p2xzlkkwibankp8604ngha880yn2-network-manager-applet-1.30.0/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml /gnu/store/hh0mq79nqhcwkpx7v68dibcv9lbha7sn-libnma-1.10.2/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
> --- /gnu/store/9hl2p2xzlkkwibankp8604ngha880yn2-network-manager-applet-1.30.0/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml	1970-01-01 01:00:01.000000000 +0100
> +++ /gnu/store/hh0mq79nqhcwkpx7v68dibcv9lbha7sn-libnma-1.10.2/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml	1970-01-01 01:00:01.000000000 +0100
> @@ -1,6 +1,6 @@
>  <?xml version="1.0" encoding="UTF-8"?>
>  <schemalist>
> -  <schema id="org.gnome.nm-applet" path="/org/gnome/nm-applet/" gettext-domain="nm-applet">
> +  <schema id="org.gnome.nm-applet" path="/org/gnome/nm-applet/" gettext-domain="libnma">
>      <key name="disable-connected-notifications" type="b">
>        <default>false</default>
>        <summary>Disable connected notifications</summary>
> @@ -37,4 +37,16 @@
>        <description>Set to FALSE to disable displaying the applet in the notification area.</description>
>      </key>
>    </schema>
> +  <schema id="org.gnome.nm-applet.eap">
> +    <key name="ignore-ca-cert" type="b">
> +      <default>false</default>
> +      <summary>Ignore CA certificate</summary>
> +      <description>Set this to true to disable warnings about CA certificates in EAP authentication.</description>
> +    </key>
> +    <key name="ignore-phase2-ca-cert" type="b">
> +      <default>false</default>
> +      <summary>Ignore CA certificate</summary>
> +      <description>Set this to true to disable warnings about CA certificates in phase 2 of EAP authentication.</description>
> +    </key>
> +  </schema>
>  </schemalist>
>
> The one in libnma has the extra “.eap” thing.
>
> The attached hack works, but it looks like something’s wrong, maybe
> related to <https://issues.guix.gnu.org/62513>?
>
> Ludo’.
>
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index 0efb98b97c..aac847710d 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -8921,9 +8921,18 @@ (define-public network-manager-applet
>                  "1lswxfxjfbiknspwli8d65i0bnyfazzcnrqckaw0s44zkm7bh5lm"))))
>      (build-system meson-build-system)
>      (arguments
> -     `(#:glib-or-gtk? #t
> -       #:configure-flags
> -       '("-Dappindicator=yes")))
> +     (list #:glib-or-gtk? #t
> +           #:configure-flags #~'("-Dappindicator=yes")
> +           #:phases
> +           #~(modify-phases %standard-phases
> +               (add-after 'install 'copy-gsettings-schema
> +                 (lambda* (#:key inputs #:allow-other-keys)
> +                   (define schema
> +                     "share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml")
> +
> +                   (delete-file (string-append #$output "/" schema))
> +                   (symlink (search-input-file inputs schema)
> +                            (string-append #$output "/" schema)))))))
>      (native-inputs
>       (list gettext-minimal
>             `(,glib "bin") ; for glib-compile-resources, etc.
>

I've reverted to the previously working version on master, but we should
figure out what's up with this change in recent releases.  It may affect
1.42 as well (which is supposedly the current stable release).

Leaving this open.  Thanks for investigating.

-- 
Thanks,
Maxim




  reply	other threads:[~2023-03-30 20:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-27 18:19 bug#62496: For network-manager-applet's nm-connection-editor, libnma needs to be installed P. p. phalantha
2023-03-29 13:37 ` Ludovic Courtès
2023-03-30 20:11   ` Maxim Cournoyer [this message]
2023-05-04  8:05     ` Josselin Poiret via Bug reports for GNU Guix
2023-05-07 13:09       ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tty2yp6n.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=62496@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    --cc=ningyuan.sg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.