donniebreve / touchcursor-linux

TouchCursor style keyboard remapping for Linux.
GNU General Public License v2.0
133 stars 28 forks source link

Unable to install on linux-mint #45

Closed SurajMeena closed 2 years ago

SurajMeena commented 2 years ago
make install                 
# Stopping the service
systemctl --user stop touchcursor.service

# Copying application to /usr/bin
# This action requires sudo.
sudo cp ./out/touchcursor /usr/bin
sudo chmod u+s /usr/bin/touchcursor

# Copying default configuration file to /home/surajm/.config/touchcursor/touchcursor.conf
mkdir -p /home/surajm/.config/touchcursor
cp -n touchcursor.conf /home/surajm/.config/touchcursor

# Copying service file to /home/surajm/.config/systemd/user
mkdir -p /home/surajm/.config/systemd/user
cp -f touchcursor.service /home/surajm/.config/systemd/user

# Enabling and starting the service
systemctl --user daemon-reload
systemctl --user enable touchcursor.service
Created symlink /home/surajm/.config/systemd/user/default.target.wants/touchcursor.service → /home/surajm/.config/systemd/user/touchcursor.service.
systemctl --user start touchcursor.service

Then I ran systemctl --user start touchcursor.service. After doing this I checked status of the service using systemctl --user status touchcursor.service which gives

● touchcursor.service - Touch Cursor Service
     Loaded: loaded (/home/surajm/.config/systemd/user/touchcursor.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2022-04-23 11:40:13 IST; 6s ago
    Process: 22349 ExecStart=/usr/bin/touchcursor (code=exited, status=1/FAILURE)
   Main PID: 22349 (code=exited, status=1/FAILURE)

Apr 23 11:40:13 surajm-Inspiron-5570 systemd[1234]: Started Touch Cursor Service.
Apr 23 11:40:13 surajm-Inspiron-5570 systemd[1234]: touchcursor.service: Main process exited, code=exited, status=1/FAIL>
Apr 23 11:40:13 surajm-Inspiron-5570 systemd[1234]: touchcursor.service: Failed with result 'exit-code'.
SurajMeena commented 2 years ago

This was probably happening because I was editing the configuration file within the cloned folder rather it had to edited in ~/.config/touchcursor

Adda0 commented 2 years ago

Hello, I am glad that you have figured out where was the problem and TouchCursor now works for you, too.

This shows, however, that we could do a better job at explaining the installation steps and providing a more useful logging information as well as specific exit codes. The redesign of logging capabilities of the service is currently a work in progress. Hopefully, it will provide more precise information of what went wrong for the user in the future.

Thank you for the feedback. Have fun and enjoy TouchCursor.