Closed hsandt closed 3 months ago
That's expected. Shutter needs to find its data, and it uses path relative to the executable.
What you can do is to add the directory with .../shutter-repo/bin/shutter
to your PATH
variable (export PATH="$PATH:/path/to/shutter-repo/bin"
), then it should work, and you won't need to copy files like that.
Brief summary of issue
In order to run a patched version of shutter (e.g. a PR branch), I replaced my shutter package install with a symlink from ~/.local/bin/shutter to shutter-repo/bin/shutter.
However, when running it via the symlink, it fails with a long error message (which can be found in other issues but they are totally difference contexts, so only the symptoms seem common).
Running shutter via full path works fine.
A hard link also fails to run with the same error message.
When creating a .desktop, I must execute shutter from full path which is cumbersome.
Otherwise, I could copy the whole shutter file to my ~/.local/bin but I'd lose the point of just having to pull new commits on my repo and automatically get the latest version of shutter in my PATH (I'd have to remember to copy shutter file every time).
Steps to reproduce the issue
shutter
, to avoid name conflict, you can name that symlinkshutter-repo
insteadshutter
(orshutter-repo
if you named it like that) using the symlink, and notice the errorshutter-repo/bin/shutter
with full path and notice it worksNote: make sure to close any previous instance of Shutter to avoid reusing the existing one. More exactly, when opening shutter works, it will use the previous instance, but when it fails, it will fail anyway.
Error output
It's very long and similar to the one in https://github.com/shutter-project/shutter/issues/567 so I'll add skipping ellipsis at some points to make it shorter. I suspect a common core error causes the same chain of error.
Extra information, such as Shutter version, display server in use (Xorg or Wayland), operating system and ideas for how to solve:
I was using Shutter 0.99.2 and now testing 0.99.4 + patch (PR: https://github.com/shutter-project/shutter/pull/642) Ubuntu 22.02 on Xorg