Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install on user dir #4

Open
albfan opened this issue Jul 9, 2023 · 0 comments
Open

Install on user dir #4

albfan opened this issue Jul 9, 2023 · 0 comments

Comments

@albfan
Copy link
Contributor

albfan commented Jul 9, 2023

I found this trick from BIMP plugin to detect user dir:

SYSTEM_INSTALL_DIR = $(shell gimptool-2.0 --dry-run --install-admin-bin ./bin/bimp | sed 's/cp \S* \(\S*\)/\1/'|tr -d [\'])
USER_INSTALL_DIR = $(shell gimptool-2.0 --dry-run --install-bin ./bin/bimp | sed 's/cp \S* \(\S*\)/\1/'|tr -d [\'])

so we can use here like:

$ gimptool-2.0 --dry-run --install-bin deskew | sed 's/cp \S* \(\S*\)/\1/'|tr -d [\']
/home/alberto/.config/GIMP/2.10/plug-ins/deskew/
$ gimptool-2.0 --dry-run --install-admin-bin deskew | sed 's/cp \S* \(\S*\)/\1/'|tr -d [\']
/usr/lib64/gimp/2.0/plug-ins/

Do you think this can be added to autotools scripts? like --enable-local-install or similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant