xca icon indicating copy to clipboard operation
xca copied to clipboard

No longer finds oids.txt etc if prefix non-standard

Open bib1963 opened this issue 3 years ago • 2 comments

I have a habit of placing software under /opt.

I configure xca with --prefix=/opt/xca-20210604, built then installed it.

Now none of the extended oid's are listed.

Running strace against it, I see that xca no longer looks under the prefix directory...

zz@localhost:/opt/xca> grep oids.txt oo 16722 openat(AT_FDCWD, "/home/b/.local/share/xca/oids.txt", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 16722 openat(AT_FDCWD, "/home/b/.local/share/flatpak/exports/share/xca/oids.txt", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 16722 openat(AT_FDCWD, "/var/lib/flatpak/exports/share/xca/oids.txt", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 16722 openat(AT_FDCWD, "/usr/local/share/xca/oids.txt", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 16722 openat(AT_FDCWD, "/usr/share/xca/oids.txt", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

And sure enough, it's not searching under /opt/xca-20210604/share/xca.

If I create a symlink between /opt/xca.../share/xca & /usr/local/share/xca, they are then shown.

bib1963 avatar Jul 28 '21 15:07 bib1963

If I create a sylink, or cp the share/xcs dir, starting xca comes up with an error, twice, same window...

Screenshot_20210729_094646

bib1963 avatar Jul 29 '21 08:07 bib1963

And the user setting path does not seem to be updated correctly...

From the Help/About...

Installation path: | /home/b/.local/share/xca User settings path: | /home/b/.local/share/xca Working directory: | /home/b/Documents/

So nothing for /opt/xca...

bib1963 avatar Jul 29 '21 12:07 bib1963