Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 58615  / 1 Year ago, wed, may 24, 2023, 10:14:25

Running lubuntu desktop on samsung N145 netbook.



I got so far as /etc/xdg/lxsession/Lubuntu/autostart
and added the line



@home/magpie/touchpad_settings.sh



Where the name of my file is touchpad_settings.sh and it does execute and work if clicked then executed.



This meant I could no longer login and get my panels though, so I undid it with my USB booter and came here to see if anyone could clarify.



Lubuntu does not use a startup manager and this is a home-made file so it won't be in Desktop session settings either.



As suggested in answers below I tried



#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/bin/sh /home/magpie/touchpad_settings.sh
exit 0


I also tried the lines:



/bin/bash /home/magpie/touchpad_settings.sh


and



sh /home/magpie/touchpad_settings.sh


which did not work.


More From » startup

 Answers
4

In the file manager, go to /usr/share/applications. Open it with root access (Tools -> Open Current Folder as Root)



Open as root



In your root access file manager window, create a new file (File -> Create New -> Blank File)



blank file



Name the new file touchpad.desktop.



file name



Find your newly created file, right-click it, edit it with leafpad.



enter image description here



In leafpad, paste the following:



[Desktop Entry]
Name=Touchpad Autostart
Exec=/home/magpie/touchpad_settings.sh
Type=Application
Terminal=false


Save it. If you can't save it, you are not in the window with root access. Start over again and follow the directions really carefully.



Again, find your file in the root access file manager window. Right-click and copy.



Copy



Now navigate your root window to the autostart folder:



/etc/xdg/autostart/


Finally, paste in your desktop file you created earlier.



Autostart File



If you did everything correctly, you should see a lot of other autostart files, but you will also see the file, "Touchpad Autostart"



It's there...



This is not the fastest way to do things, but you seemed to be struggling with a lot of steps in the other answers, so I wanted to take it slow with a lot of details. If your script is still not running after rebooting (do not simply logout and back in), it's a problem with your script. Maybe double check?


[#36654] Wednesday, May 24, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inaterested

Total Points: 500
Total Questions: 104
Total Answers: 92

Location: Virgin Islands (U.S.)
Member since Fri, May 7, 2021
3 Years ago
inaterested questions
Fri, Aug 12, 22, 21:24, 2 Years ago
Wed, Apr 27, 22, 17:14, 2 Years ago
Tue, Oct 26, 21, 20:41, 3 Years ago
;