sergei-mironov / xkb-switch

Switch your X keyboard layouts from the command line
MIT License
353 stars 40 forks source link

Problem when installing as user #73

Open kalium222 opened 8 months ago

kalium222 commented 8 months ago

Hello, when i install it as user, i run make DESTDIR=$HOME/.local install, i get this

[ 50%] Built target xkbswitch
[ 83%] Built target xkb-switch
[100%] Built target man_xkb-switch_1
Install the project...
-- Install configuration: ""
-- Up-to-date: /home/kalium/.local/usr/local/bin/xkb-switch
-- Up-to-date: /home/kalium/.local/usr/local/lib/libxkbswitch.so.2.0.1
-- Up-to-date: /home/kalium/.local/usr/local/lib/libxkbswitch.so.2
-- Up-to-date: /home/kalium/.local/usr/local/lib/libxkbswitch.so
-- Up-to-date: /home/kalium/.local/usr/local/share/man/man1/xkb-switch.1.gz

which is strange. shouldn't it be

...
-- Up-to-date: /home/kalium/.local/bin/xkb-switch
-- Up-to-date: /home/kalium/.local/lib/libxkbswitch.so.2.0.1
-- Up-to-date: /home/kalium/.local/lib/libxkbswitch.so.2
-- Up-to-date: /home/kalium/.local/lib/libxkbswitch.so
-- Up-to-date: /home/kalium/.local/share/man/man1/xkb-switch.1.gz

is that a problem? or it should be like this? Thanks very much

sergei-mironov commented 8 months ago

Hi. What outcome do you expect? It looks like make detects that xkb-switch files are already present in the ~/.local tree and refuses to overwrite them. Did you call install several times?

kalium222 commented 8 months ago

yes, i call it twice, but when i called it at first time, it installed everything of xkb-switch in ~/.local/usr, which is every strange because we cannot run xkb-switch in bash because it is not in the path. I am not sure but I think they may be in the bin, lib, share in the ~/.local. Maybe we should modify the cmakelist?