KeeWeb 失败:nixos 上的任何 .service 文件均未提供名称 org,freedesktop.secrets

问题描述

我正在尝试让 KeeWeb 在 Nixos 中工作。 它不在 20.09 频道中,所以我尝试为它编写一个推导……但失败了。幸运的是,经过更多搜索后,我发现其他人已经做到了!太棒了!

所以我从:https://github.com/sikmir/nixpkgs/blob/master/pkgs/applications/misc/keeweb/default.nix 复制了代码。并将其导入到我的家庭管理员设置中。它构建良好,但当我运行它时,它只会打开一个错误对话框:

“加载应用程序时出错。错误名称 org,freedesktop.secrets 未由任何 .service 文件提供”

一些搜索将我指向 gnome-keyring 和 libsecret 的方向。即使是解决这个问题的 PR,所以你会认为它是固定的......但是唉。

我将 src 更改为指向最新版本,但仍然没有运气。

所以我的设置中可能缺少一些东西。

你能帮我吗?

解决方法

尝试在您的 NixOS 配置中启用 gnome-keyring 守护进程:

operation = input('Enter an arithemtic operation: ')
print(operation)
operation = operation.replace(" ","")
if len(operation) == 3:
    a = int(operation[0])
    b = int(operation[2])
    sign2 = operation[1]
    if(sign2 == '+'):
        sum = a + b
        print(sum)
    elif(sign2 == '-'):
        sum = a - b
        print(sum)
    elif(sign2 == '*'):
        sum = a * b
        print(sum)
    elif(sign2 == '/'):
        sum = a / b
        print(round(sum,3))

elif len(operation) == 4:
    a = int(operation[1]) * -1
    b = int(operation[3])
    sign1 = operation[0]
    sign2 = operation[2]
    if(sign2 == '+'):
        sum = a + b
        print(sum)
    elif(sign2 == '-'):
        sum = a - b
        print(sum)
    elif(sign2 == '*'):
        sum =  a * b
        print(sum)
    elif(sign2 == '/'):
        sum = a / b
        print(round(sum,3))

    


else:
    print('input invalid')