用于NixOS的包装jetbrains-toolbox

时间:2018-03-18 17:37:30

标签: nixos jetbrains-toolbox

我正在尝试在NixOS上使用{{3}}。

下载是单个ELF二进制文件。我用

修复了它
patchelf --set-interpreter /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/ld-linux-x86-64.so.2
         --set-rpath /nix/store/y76fs08y8wais97jjrcphdw2rcaka1qa-fuse-2.9.7/lib:/nix/store/4csy6xvbrqxkp3mk6ngxp199xkr476lj-glib-2.54.3/lib:/nix/store/r43dk927l97n78rff7hnvsq49f3szkg6-zlib-1.2.11/lib jetbrains-toolbox

现在运行二进制文件会导致:

Cannot open /tmp/.mount_9TUyRi/.DirIcon

进行一些调试:

$ strace ./jetbrains-toolbox 2>&1|grep mount
mkdir("/tmp/.mount_HJCQAO", 0700)       = 0
openat(AT_FDCWD, "/tmp/.mount_HJCQAO", O_RDONLY) = 4
openat(AT_FDCWD, "/tmp/.mount_HJCQAO/.DirIcon", O_RDONLY) = -1 ENOENT (No such file or directory)
write(1, "Cannot open /tmp/.mount_HJCQAO/."..., 40Cannot open /tmp/.mount_HJCQAO/.DirIcon

知道这里可能有什么问题吗? (在“正常”操作系统上它运行得很好。)

1 个答案:

答案 0 :(得分:1)

这似乎是一个未解决的AppImage bug #296的实例。