NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.11k stars 14.15k forks source link

Fuse doesn't work in appimage runned via appimage-run #81208

Closed pio2398 closed 3 years ago

pio2398 commented 4 years ago

Describe the bug I'd like to use pCloud on NixOS. There provide appimage client for Linux. Client need fuse library to mount virtual drive. So I add fuse to overlays of appimage-run:

appimage-run = super.appimage-run.override {
        extraPkgs = p:
          with p; [
            at-spi2-core
            gsettings-desktop-schemas
            fuse3
            fuse
          ];
      }; 

Unfortunately it's not working. App start but don't mount drive. I think this is bug or limitation of appimage-run.

To Reproduce Steps to reproduce the behavior:

  1. Add fuse to overlays of appimage-run.
  2. Run app using fuse via appimage-run

Expected behavior Directory should be mounted via FUSE.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Metadata Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
bignaux commented 4 years ago

It could come from the chrootenv , that both appimageTools.wrapAppImage and appimage-run shared on top of buildFHSUserEnv . If i were you, i'd try to confirm that trying to fusermounting in your setuped fuse chrootenv ... If you confirm that is the issue, you can try to make a native appimage derivation, like example #75392 or #80402 .

bignaux commented 4 years ago

Could you provide a direct link for #82158 ?

pio2398 commented 4 years ago

@bignaux: Sorry for slow respond but I have been busy. I try to do it but it's a bit hard because there is no simple download link for this client. To be honest even if this work it's pretty hard for average user. Thank you for hint. Question about link is for me? I can do this but I don't see link option.

bignaux commented 4 years ago

Oki i found the src.url then i make a quick expression for this interesting use case. btw i've some more priority to fix in appimage right now (fixing argument passing then exec hook so we can debug that tool), if your interesting to be the manager of that later (if my PR is merge). I found the url with "simple mass downloader" firefox addon with export selected item to file.

btw interesting thread here https://superuser.com/questions/1315199/change-default-mount-point-of-pcloud

  pcloud = buildAppImage rec {
      pname = "pcloud";
      version = "1.7.2";
      extraPkgs = pkgs: with pkgs; [ at-spi2-core hicolor-icon-theme gsettings-desktop-schemas fuse ]; #fuse3
      profile = ''
        export LC_ALL=C.UTF-8
        export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
      '';
      src = fetchurl {
        url = "https://p-par1.pcloud.com/cBZetST9hZtTO10SZZZm2yfa7Z2ZZnm5ZkZVcA5VZAkZJFZL5ZqZlJZ5XZX0Z2JZpFZ6JZ9XZG5Z5kZg5Z1EnhkZB1zEnYecd5SOvvU5sxCGhResxlKX/pcloud";
        sha256 = "37e15e46f3c5fb6958c22c752050f4effc096745afb3c4f6a97a5c98607bfbe6";
      };
      meta.description = "Decentralized Social Sharing Network";
  };
pio2398 commented 4 years ago

Yes, I can help in managing. Unfortunately this link will work only for short time. I tried to implement solution from this: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pcloud-drive but it's also not perfect because you can't select fixed version number. So after some time build will start failing because of checksum mismatch. Thanks for link I also tried to similar solution but I always ended empty dir without any error. There is also open source version without GUI https://github.com/pcloudcom/console-client but compiling it is nightmare - even on "normal" Linux distro. I have seen unofficial fix that make compilation simpler but I can't find link now. It's maybe usefully for debuging.

stale[bot] commented 4 years ago

Hello, I'm a bot and I thank you in the name of the community for opening this issue.

To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.

pio2398 commented 4 years ago

still important to me

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

pio2398 commented 3 years ago

still important to me

Patryk27 commented 3 years ago

Closing, as this has been already solved some time ago - at least for pCloud 🙂

The overall (non-pcloud-related) issue is tracked at https://github.com/NixOS/nixpkgs/issues/69338.