jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Freeze when GNOME keyring is not installed

Open linsui opened this issue 2 years ago • 2 comments

JabRef version

5.11 (latest release)

Operating system

GNU / Linux

Details on version and operating system

NixOS 24.05

Checked with the latest development build (copy version output from About dialog)

  • [X] I made a backup of my libraries before testing the latest development version.
  • [X] I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

Uninstall GNOME keyring. Then open Jabref options. Freeze.

ERROR: Cloud not acquire a prompt.: org.freedesktop.secret.errors.NoSuchObject: /org/freedesktop/secrets/prompt/870bc57feddd44eb90b2e76d3b8621db
	at [email protected]/org.freedesktop.secret.Prompt.prompt(Prompt.java:41)
	at [email protected]/org.freedesktop.secret.Prompt.lambda$await$0(Prompt.java:63)
	at [email protected]/org.freedesktop.secret.handlers.SignalHandler.await(SignalHandler.java:144)
	at [email protected]/org.freedesktop.secret.Prompt.await(Prompt.java:62)
	at [email protected]/org.freedesktop.secret.Prompt.await(Prompt.java:80)

Appendix

...

Log File
Paste an excerpt of your log file here

linsui avatar Nov 28 '23 10:11 linsui

Filed upstream - https://github.com/javakeyring/java-keyring/issues/96

koppor avatar Dec 18 '23 20:12 koppor

@linsui Is there a (kind of) minimal NixOS configuration to work on? I am new to NixOS (using it now and then for a few hours) and have a mixed setup of Flake and Homemanager and stuff (based on https://nixos-and-flakes.thiscute.world/other-usage-of-flakes/the-new-cli), but it totally feels like a mess - and I am not sure if I will be able to replicate (I am on GNOME in NixOS)

  services.xserver.desktopManager.gnome.enable = true;

koppor avatar May 27 '24 19:05 koppor

Here is a minimal flake.nix with minimal GNOME and jabref

{
  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  outputs = { self, nixpkgs }: {
    nixosConfigurations.test = nixpkgs.lib.nixosSystem {
      modules = [
        ({ config, pkgs, lib, ... }: {
          users.users.test = {
            isNormalUser = true;
            password = "12345678";
          };

          services = {
            xserver = {
              enable = true;
              desktopManager.gnome.enable = true;
              displayManager.gdm.enable = true;
              xkb.layout = "us";
              excludePackages = [ pkgs.xterm ];
            };

            # Disable some services enabled by GNOME
            gnome = {
              tracker.enable = false;
              tracker-miners.enable = false;
              rygel.enable = false;
              gnome-online-accounts.enable = false;
              gnome-online-miners.enable = lib.mkForce false;
              gnome-keyring.enable = lib.mkForce false;
            };
            avahi.enable = false;
            dleyna-renderer.enable = false;
            dleyna-server.enable = false;
            geoclue2.enable = false;
          };
          environment.gnome.excludePackages = with pkgs.gnome; [
            adwaita-icon-theme
            gnome-backgrounds
            gnome-bluetooth
            gnome-color-manager
            gnome-control-center
            gnome-shell-extensions
            gnome-themes-extra
            baobab
            evince
            gnome-disk-utility
            file-roller
            epiphany
            gnome-clocks
            gnome-logs
            gnome-system-monitor
            nautilus
            yelp
            totem
            geary
            gnome-backgrounds
            gnome-characters
            gnome-weather
            gnome-maps
            simple-scan
            gnome-contacts
            gnome-calendar
            gnome-calculator
            gnome-font-viewer
            gnome-music
            gnome-shell-extensions
            seahorse
            pkgs.gnome-connections
            pkgs.loupe
            pkgs.gnome-text-editor
            pkgs.snapshot
            pkgs.gnome-tour
            pkgs.gnome-user-docs
            pkgs.orca
          ];

          environment.systemPackages = with pkgs; [ jabref ];

          nixpkgs.hostPlatform = { system = "x86_64-linux"; };
          system.stateVersion = "24.05";
        })
      ];
    };
  };
}

You can run it with nix --extra-experimental-features flakes run .#nixosConfigurations.test.config.system.build.vm -- -m 4G.

But I can't reproduce this problem on JabRef 5.13 so maybe it has been fixed somehow.

linsui avatar May 28 '24 07:05 linsui

Thanks for the feedback @linsui Did you encounter this issue again or is it still solved? Otherwise we would close this issue and reopen it if the issue persists

Siedlerchr avatar Jun 03 '24 19:06 Siedlerchr

I thought it's solved somehow, thanks!

linsui avatar Jun 04 '24 06:06 linsui

@linsui What would help nevertheless would be a Vagrantfile for a NixOS VM. I made some for Ubuntu and Fedora. (https://github.com/JabRef/jabref/tree/main/scripts/vms)

NixOS could be easy, but IDK. Maybe, you have some time and energy for that?

koppor avatar Jul 11 '24 20:07 koppor

I'm not familiar with vagrant and I don't know ruby. :shrug:

linsui avatar Jul 18 '24 11:07 linsui

I'm not familiar with vagrant and I don't know ruby. :shrug:

Me neither 😅.

Just in case you have some time and want to accept that challenge. I know, this is not a task for minutes. I spend hours tk o create https://github.com/JabRef/jabref/tree/main/scripts/vms. The challenge was neither VirtualBox, nor Vagrant nor Ruby. It was to find out the right commands to setup the operating system. Example: https://github.com/JabRef/jabref/blob/eb16c330d87ea3b59ba2b1d0eb818b3ee5cda632/scripts/vms/ubuntu/Vagrantfile#L31

I was just thinking you maybe know the commands to setup it and could share them in a reusable way.

No worries though, was just an idea to offer some point of support for JabRef so that the developers gain time to work on something else. Its a free time project for all of us and should create joy or new knowledge! 💪🎉

koppor avatar Jul 18 '24 14:07 koppor