Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-07-01 15:42:43

woistmeinauto
Member
Registered: 2020-03-29
Posts: 49

Startup script not working

There is a caps log bug/feature on arch linux.

https://wiki.archlinux.org/index.php/Xo … is_pressed

I did this

#!/bin/bash -e

xkbcomp -w 0 xkbmapedited $DISPLAY

I can see it's suggested to make it a service but i don't like that approach.
When i reinstall or install another OS i want to be able to see everything i changed so i can quickly set it up.

So i keep files in /home/user/bin folder.

I added

sh /home/user/bin/capsfix.sh

to application autostart

Both the capsfix.sh and xkbmapedited files are in /home/user/bin folder.
When i run it from terminal it runs perfectly. However, it doesn't work on startup.
I believe it has something to do with requiring access to another file.
Can i make this work? I don't want to make it a service.

Last edited by woistmeinauto (2020-07-01 15:43:18)

Offline

#2 2020-07-02 01:30:57

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,111

Re: Startup script not working

Perhaps its working but being overwritten by some other startup process. Try adding a sleep delay so it executes later in the process:

#!/bin/bash -e
sleep 3
xkbcomp -w 0 xkbmapedited $DISPLAY

Offline

#3 2020-07-04 06:29:15

woistmeinauto
Member
Registered: 2020-03-29
Posts: 49

Re: Startup script not working

Seems to be working now, weird though. Thanks a bunch.

Offline

Board footer

Powered by FluxBB