[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    [nix-devel] gpg isn't able to open pinentry dialogue when triggered via gui
From:       Kai Lemke <kai.lemke91 () gmx ! de>
Date:       2018-07-09 23:29:51
Message-ID: df4d9a21-cab6-2430-7d00-fa46a2205c27 () gmx ! de
[Download RAW message or body]

Dear all,

on my current installation gpg cannot trigger pinentry dialogue when
called from a gui (I tried dmenu and browserpass), if called from
terminal everything's fine - even if I call passmenu from terminal,
passmenu is able to trigger pinentry.

The process information (`ps auxwww | grep pass`) is equal in both
situations except that of course tty is ? and process is not marked as
foreground whend called from gui.
When launched from gui I never see a gpg process.

I would be very grateful for suggestions.

My system information:

 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.53, NixOS, 18.03.132821.56fad146a12 (Impala)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
 - channels(root): `"nixos-18.03.132821.56fad146a12"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`


My configuration is something like:

{ config, pkgs, ... }:

{
  imports =
    [ ./hardware-configuration.nix
    ];

  programs = {
    browserpass.enable = true;
  };

  services = {
    xserver = {
      enable = true;
      layout = "de";
      xkbVariant = "neo";
      displayManager.slim.enable = true;
      windowManager.dwm.enable = true;
      xautolock = {
        enable = true;
        locker = "/run/wrappers/bin/slock";
        nowlocker = "/run/wrappers/bin/slock";
        time = 5;
      };
    };
  };

  security = {
    chromiumSuidSandbox.enable = true;
  };

  nixpkgs = {
    config = {
      # allow closed source packages
      allowUnfree = true;
      packageOverrides = pkgs: {
        dwm = pkgs.dwm.override {
          patches = [ ./patches/dwm.diff ];
        };
        dmenu = pkgs.dmenu.override {
          patches = [ ./patches/dmenu.diff ];
        };
        # this should not be needed, but I tried explicitly
        pass = pkgs.pass.override {
          dmenu = pkgs.dmenu;
          x11Support = true;
          xclip = pkgs.xclip;
          xdotool = pkgs.xdotool;
        };
      };
    };
  };

  environment = {
    systemPackages = with pkgs;
      [
        gnupg
        pass
        dmenu
        chromium
        ( firefox.override { extraNativeMessagingHosts = [ browserpass
]; } )
      ];
  };

  system.stateVersion = "18.03";
}

Thank you very much!


Sincerely Kai

-- 
You received this message because you are subscribed to the Google Groups "nix-devel" \
group. To unsubscribe from this group and stop receiving emails from it, send an \
email to nix-devel+unsubscribe@googlegroups.com. To post to this group, send email to \
nix-devel@googlegroups.com. To view this discussion on the web visit \
https://groups.google.com/d/msgid/nix-devel/df4d9a21-cab6-2430-7d00-fa46a2205c27%40gmx.de.
 For more options, visit https://groups.google.com/d/optout.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic