Support icon indicating copy to clipboard operation
Support copied to clipboard

GitFiend does not seem to work with symlinked ~/.ssh/config file

Open crabdancing opened this issue 2 years ago • 3 comments

In NixOS with home-manager, ~/.ssh/config is a symlink pointing to a directory in the Nix store. When I try to use GitFiend on these computers, it claims bad owner or permissions on /home/<USER>/.ssh/config -- but the file is publicly accessible, and the permissions in Flatpak are set correctly (i.e. /nix/store:ro). Thus, I think the fact that it is a symlink is causing it to erroneously reject the file.

Context:

NixOS 22.11 using Flatpak 1.14.0, and GitFiend version 0.39.4.

crabdancing avatar Apr 25 '23 05:04 crabdancing

Hi @alxpettit, Does your ssh config work with Git on the command line? Usually if that is working GitFiend will also work.

GitFiend avatar Apr 25 '23 06:04 GitFiend

The tests I've done so far:

  1. flatpak run --command=sh com.gitfiend.GitFiend

    • This runs sh inside the same containerization that GitFiend runs in. When cating ~/.ssh/config within this environment, it works fine and has the requisite permissions, indicating that GitFiend should in principle be able to read the file.
  2. Checking the file permissions on ~/.ssh/config

    • They are readable and normal.
  3. I use git command in itself over SSH all the time, and it works fine.

  4. Here's where it gets weird. Inside of the com.gitfiend.GitFiend flatpak container, I run git push inside my repo by hand.

    • The result is I get the same error message reported by GitFiend itself.

Therefore, I conclude that GitFiend itself is not the problem -- the problem is something to do with how the git command is containerized in the Flatpak distribution of Gitfiend.

I'm not sure what else to test, so let me know your thoughts. :)

crabdancing avatar Apr 25 '23 08:04 crabdancing

Tbh, I'm not sure what the problem could be. I also don't know much about flatpak yet. There are some details you may not know that could provide clues:

  • I didn't create the flatpak, a build process is doing something clever to convert the appimage file to flatpak. See https://github.com/GitFiend/Support/issues/152 and https://github.com/flathub/com.gitfiend.GitFiend
  • GitFiend doesn't bundle Git or have it as a dependency, instead relying on the user to have it installed

GitFiend avatar Apr 30 '23 06:04 GitFiend