Xfce Forum

Sub domains
 

You are not logged in.

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

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

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
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

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

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

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

Re: Startup script not working

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

Offline

Registered users online in this topic: 0, guests: 2
[Bot] ClaudeBot (2)

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 523.38 KiB (Peak: 530.78 KiB) ]