bryanherger / xdrawchem

XDrawChem is a two-dimensional molecule drawing program.
36 stars 11 forks source link

Relocate ring folder from /usr/local/share/xdrawchem/doc #6

Open jasonkey opened 7 years ago

jasonkey commented 7 years ago

Hi,

Is it possible to relocate the "ring folder" from /usr/local/share/xdrawchem either within the xdrawchem installation or possibly by using a environment variable or a configuration file?

I'd settle for changing the source on my end too, if that's doable.

The issue here is that adding the files to /usr/local/share/xdrawchem (or creating a symlink to it) is not feasible for sites that use a network-share software collection across many workstations. It is also not possible for users that do not have root access on managed workstations.

Cheers, Jason

bryanherger commented 7 years ago

Hello,

You can fix this by recompiling from source. Edit xdrawchem.pro, set RINGHOME to the desired path, then rebuild with "qmake xdrawchem.pro" followed by "make".

I thought this was configurable by setting an environment variable, but I see that the path is taken only from the RINGHOME define. I'll fix that shortly, and probably also make this settable during installation if I can figure out how to do that with RPM.

Thanks for reporting this - Bryan