You are not logged in.

#1 2022-07-01 10:57:00

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 220

[RESOLVED] Autostart for xinput does not work

I have two autostart in .config/autostart/:
xinput.desktop

[Desktop Entry]
Comment[pl_PL]=xinputMyszka
Comment=xinputMyszka
Exec=xinput --set-prop 15 290 -0.6 &
GenericName[pl_PL]=xinputMyszka
GenericName=xinputMyszka
Icon=
MimeType=
Name[pl_PL]=xinput
Name=xinput
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=unique
X-KDE-SubstituteUID=false
X-KDE-Username=

org.kde.yakuake.desktop

[Desktop Entry]
Categories=Qt;KDE;System;TerminalEmulator;
Comment[pl_PL]=Emulator rozwijanego terminala oparty o technologię KDE Konsole.
Comment=Emulator rozwijanego terminala oparty o technologię KDE Konsole.
Exec=yakuake
GenericName[pl_PL]=Rozwijany terminal
GenericName=Rozwijany terminal
Icon=yakuake
MimeType=
Name[pl_PL]=Yakuake
Name=Yakuake
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=org.kde.yakuake
X-DBUS-StartupType=unique
X-KDE-StartupNotify=false
X-KDE-SubstituteUID=false
X-KDE-Username=

I can't start xinput. I have the file permissions set as in "org.kde.yakuake.desktop". Where is the problem?

Last edited by thommen (2022-07-01 12:02:10)

Offline

#2 2022-07-01 11:39:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [RESOLVED] Autostart for xinput does not work

? xinput is a commandline tool and you have Terminal=false hence you are just running a CLI command that is not attached to a terminal that will list information that will not land anywhere. What exactly are you expecting or wanting to do, what's the end goal of this excercise?

Last edited by V1del (2022-07-01 11:42:20)

Offline

#3 2022-07-01 11:41:33

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 220

Re: [RESOLVED] Autostart for xinput does not work

I am currently invoking the command

xinput --set-prop 15 290 -0.6 &

manually after turning on the computer.

I want it to run with the system. How can this be done?

Offline

#4 2022-07-01 11:43:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [RESOLVED] Autostart for xinput does not work

then why are you not adding that exact command (without the leading & you don't want that in a general sense) to your autostart/the Exec= line? xinput without argument will list your input devices, you don't want to list your input devices but set the property of one, note that depending on what exactly you are manipulating here chances are this will get rolled over by the default mouse handling daemon of KDE again. If this is a setting you can configure in systemsettings you probably rather want to configure that there.

Edit: Ah wait you have that and it doens't run? Remove the leading & in any case, that's a terminal specific  command for backgrounding jobs you don't want. If the steamrolling is your issue you might get to it with a sleep e.g.

Exec=sh -c 'sleep 5 && xinput --set-prop 15 290 -0.6'

Last edited by V1del (2022-07-01 11:50:35)

Offline

#5 2022-07-01 11:55:41

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 220

Re: [RESOLVED] Autostart for xinput does not work

Actually, that's right. '&; was unnecessary. Thank you for your help

Last edited by thommen (2022-07-01 12:01:46)

Offline

Board footer

Powered by FluxBB