This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kde autostart: xmodmap ignored after upgrade

Tags: None
(comma "," separated)
weka
Registered Member
Posts
17
Karma
0
Hello,

long time ago I applied this script to kde autostart:

Code: Select all
#!/bin/bash
/usr/bin/amixer set 'Master' 10%
/usr/bin/gnubiff --noconfigure --systemtray
/usr/bin/xbindkeys -n


Everything worked fine, until the upgrade to the latest KDE Neon (Ubuntu 22.04). Now, the xbindkeys command is not being executed any more, thus my mouse buttons are not set properly after starting KDE. I have to call this command manually after login to make it work. The file "~/.xbindkeysrc" looks like this:

Code: Select all
###########################
# xbindkeys configuration #
###########################
"/usr/bin/xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
b:6

"/usr/bin/xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
b:7

"/usr/bin/xte 'key Page_Up'"
b:9

"/usr/bin/xte 'key Page_Down'"
b:8


Why is this command not being executed any more and how can I make it being executed again at KDE start up?

Thanks in advance for any help!
paulatz
Registered Member
Posts
2
Karma
0
A lot of autostart services are not working since 22.04 (3 out of 8 for me). They are now converted to systemd services, which seems to have glitches. What do you see if you give the command:
Code: Select all
systemctl --user |grep @autostart

and if any service is marked as "failed" what does

Code: Select all
systemctl --user status app-NAME@autostart.service

returns?

From what I see, the problem is that the Exec line cannot contain parameters, and the command cannot be a script, or something similar.

A workaround is here: https://blog.davidedmundson.co.uk/blog/ ... d-startup/, i.e. run
Code: Select all
kwriteconfig5 --file startkderc --group General --key systemdBoot false
to tell kde to do its own autostart, this may break again in the future.
weka
Registered Member
Posts
17
Karma
0
paulatz: Thanks a lot! That command "kwriteconfig5 ..." did it: now my KDE autostart scripts work again as expected! :)

I also read the page you gave a link to, and although I appreciate all the work the KDE creators and programmers do, I do not quite understand why they activated such a feature as default, when it is not really ready for "mass market", risking that it will give headache to a lot of users. Such a feature should be optional, and not mandatorily.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Sogou [Bot]