unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#45267: Using gnome-keyring and LXQt as Desktop Environment
@ 2020-12-16 12:01 Hamzeh Nasajpour
  2020-12-18 13:27 ` Leo Prikler
  0 siblings, 1 reply; 2+ messages in thread
From: Hamzeh Nasajpour @ 2020-12-16 12:01 UTC (permalink / raw)
  To: 45267

Hi guys,

I want to install `gnome-keyring` service on my system. I'm using the LXQt as Desktop Environment. I had an issue for integrating ssh-agent with `gnome-keyring` and I noticed I should update this line in `desktop`  files of `gnome-keyring`:
```
OnlyShowIn=GNOME;Unity;MATE;
```

to 

```
OnlyShowIn=GNOME;Unity;MATE;LXQt;
```

So I re-packaged the `gnome-keyring` as follow:
```
(define-public gnome-keyring-modified
  (package
    (inherit gnome-keyring)
    (name "gnome-keyring-modified")
      (arguments
    (substitute-keyword-arguments (package-arguments gnome-keyring)
        ((#:phases phases)
          `(modify-phases ,phases
             (add-after 'unpack 'patch-desktop-files
              (lambda _
                (substitute* '("daemon/gnome-keyring-secrets.desktop.in.in")
                  (("OnlyShowIn=GNOME;Unity;MATE;") "OnlyShowIn=GNOME;Unity;MATE;LXQt;"))
                (substitute* '("daemon/gnome-keyring-pkcs11.desktop.in.in")
                  (("OnlyShowIn=GNOME;Unity;MATE;") "OnlyShowIn=GNOME;Unity;MATE;LXQt;"))
                (substitute* '("daemon/gnome-keyring-ssh.desktop.in.in")
                  (("OnlyShowIn=GNOME;Unity;MATE;") "OnlyShowIn=GNOME;Unity;MATE;LXQt;"))
                #t))))))))
```

The above package definition is ok and works, but since I want to use the `gnome-keyring` as service I should update `gnome-keyring-configuration` in my system configuration, so I'm using this config:
```
...
         (service gnome-keyring-service-type
                  (gnome-keyring-configuration
                   (keyring gnome-keyring-modified)
                   (pam-services '(("passwd" . passwd)
                                   ("sddm" . login)))))
...
```

Now I reconfigured the system successfully, but `gnome-keyring` service is using the default `gnome-keyring`, not `gnome-keyring-modified` package, while I set the `keyring` to `gnome-keyring-modified`. 

Do you have any idea?


--

Hamzeh Nasajpour
PantherX Team




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

* bug#45267: Using gnome-keyring and LXQt as Desktop Environment
  2020-12-16 12:01 bug#45267: Using gnome-keyring and LXQt as Desktop Environment Hamzeh Nasajpour
@ 2020-12-18 13:27 ` Leo Prikler
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Prikler @ 2020-12-18 13:27 UTC (permalink / raw)
  To: h.nasajpour; +Cc: 45267

Hello Hamzeh,

the gnome-keyring service is not the only place, in which gnome-keyring 
is used.  As far as I understand, all it does is unlocking your login
keyring; you have to ensure on your own, that the keyring argument
passed to it matches the keyring used by your applications.

I think you have two options going ahead.  One would be to mark your
keyring as a replacement to the existing one.  That would require the
non-trivial effort of maintaining a Guix fork while the patch is not
upstreamed and lobbying for its inclusion in mainline Guix.  Is there
some merit in adding LXQt to this line or even dropping it entirely? 
The second would be to replace gnome-keyring in every package using it
through package transformations.

Regards, 
Leo





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

end of thread, other threads:[~2020-12-18 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 12:01 bug#45267: Using gnome-keyring and LXQt as Desktop Environment Hamzeh Nasajpour
2020-12-18 13:27 ` Leo Prikler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).