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

Support for ostree based operating systems (Fedora Silverblue for example)

Open TSonono opened this issue 2 years ago • 3 comments

Linux based immutable operating systems are becoming and more popular. I was wondering if it would possible to modify this really useful program to be compatible with such operating systems.

I have made a (dirty) fork (https://github.com/TSonono/input-remapper) for me to be able to use input-remapper on Fedora Silverblue. Would it be a change that you would consider accepting if I were to change the install destination of most files from /usr/** to /usr/local/**? The reason that this is needed is due to ostree based systems having a read-only filesystem for everything under the root directory except for /etcand /var. /usr/local is however aliased to /var/usrlocal/ (in ostree based systems), which would make it compatible in ostree based operating systems.

TSonono avatar Apr 08 '22 07:04 TSonono

If you can verify that the installation on Debian and Arch based distros still works after your changes, sure make a PR!

sezanzeb avatar Apr 08 '22 10:04 sezanzeb

I don't think /usr/local is the right place on other Fedora variants, not even os-tree based ones. /etc and /var for config and variable files, yes.

Or are you trying to use pip on Silberblue?

mjg avatar Apr 19 '22 19:04 mjg

I don't think /usr/local is the right place on other Fedora variants, not even os-tree based ones. /etc and /var for config and variable files, yes.

Or are you trying to use pip on Silberblue?

As I mentioned, /usr/local is aliased to /var/usrlocal in ostree based systems.

I'm indeed using pip. Another option would be to create an rpm for this application and you could then layer it with rpm-ostree

TSonono avatar Apr 20 '22 05:04 TSonono