input-remapper-xautopresets icon indicating copy to clipboard operation
input-remapper-xautopresets copied to clipboard

Problem installing on almalinux 8

Open theorin opened this issue 2 years ago • 0 comments

Hi, I am running into multiple errors during installation.

[martin@192 input-remapper]$ bash /home/martin/Downloads/input-remapper-xautopresets-main/install
Copying automation script (input-remapper-xautopresets) to /home/martin/.local/bin...
cp: cannot stat 'local/bin/': No such file or directory
Done!
Making executable...
chmod: cannot access '/home/martin/.local/bin/input-remapper-xautopresets': No such file or directory
chmod: cannot access '/home/martin/.local/bin/xautopresets-config': No such file or directory
Creating configuration file (xautopresets.ini) in /home/martin/.config/input-remapper...
/home/martin/Downloads/input-remapper-xautopresets-main/install: line 55: xautopresets-config: command not found
Done!
Copying .service file (input-remapper-xautopresets.service) to /home/martin/.config/systemd/user...
cp: cannot stat 'config/systemd/': No such file or directory
Done!
Reloading systemd daemon...
Done!
Enabling service to start at user login...
Failed to enable unit: Unit file input-remapper-xautopresets.service does not exist.
Failed to enable service!
Installation Failed!
Starting service...
Failed to start input-remapper-xautopresets.service: Unit input-remapper-xautopresets.service not found.
Done!
Installation Complete!

I checked the paths that throw No such file or directory:

/home/martin/.local/bin exist and there should be no problem. I found out that in RHEL like system input-remapper-xautopresets.service should be located in /etc/systemd/system/ as the directory /home/martin/.config/systemd/user really does not exist.

I tried to copy the files manually and run the xautopresets-config script, but again similar error occurs:

[root@192 martin]# bash /home/martin/.local/bin/xautopresets-config
/home/martin/.local/bin/xautopresets-config: line 10: cd: /root/.config/input-remapper: No such file or directory

I believe the path should be: /home/martin/.config/input-remapper or at least that's where I found the folder with input-remapper config and presets. Here I fall short as I am not well enough versed in shell scripts and have no idea what xautopresets-config script is supposed to create there. So far it seems like an issue with relative paths in RHEL-like systems, but it could be something else.

I would be really grateful for any help. Thank you in advance.

theorin avatar Nov 04 '22 00:11 theorin