this post was submitted on 11 Jun 2026
9 points (100.0% liked)

Linux Mint

354 readers
1 users here now

A community for news and discussion about linux mint

founded 2 years ago
MODERATORS
 

The issue seems to be Keysharp interfering!

Original post:


I have this set up as a startup script, but it only sometimes triggers, despite setting a 20-second delay:

#!/bin/bash
sleep 2
xmodmap -e "clear lock"
xmodmap -e "keycode 66 = Return"

I have the startup command set to bash "path/Remap_Caps_Lock_to_Enter.sh". What's going on? It works when I press the triangle button when it doesn't work on boot.

you are viewing a single comment's thread
view the rest of the comments
[–] artwork@lemmy.world 7 points 1 month ago* (last edited 1 month ago)

The first and foremost I see unclear is the PATH and PWD. That is, the environment. For starters:

  1. Have you tried passing full paths to the executables?
  2. Have you tried recovering the PATH with /usr/bin/env via Shebang?

What if the "start" script doesn't find the locations due to missing definitions/locations as a result of different environment if compared to your shell/process you test on?