Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 475  / 1 Year ago, tue, november 15, 2022, 1:40:27

I have this script in a *.sh file to enable natural scrolling. I've added it to Startup Application.



#!/bin/sh
xinput set-prop 11 268 -106 -106
nautilus -q && nautilus -n


The problem is, whenever I login, the last command (nautilus -n) won't run -which is annoying because I can't use the Super button to open Dash- and I have to run nautilus manually. What's wrong?



UPDATE:



I have tested my script above on terminal line-by-line, and it works fine. The problems only appear when I run it from .sh file.



nautilus -q && touch $HOME/Desktop/reported-success.txt give me the txt file,



and the result of nautilus -q && nautilus -n &> $HOME/nautilus-output.log is :



Initializing nautilus-open-terminal extension
Initializing nautilus-image-converter extension
Initializing nautilus-dropbox 1.4.0

More From » 12.10

 Answers
6

End the script with a linefeed/enter character or an empty line

or else the last command won't be executed.


[#31904] Tuesday, November 15, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elopingapo

Total Points: 206
Total Questions: 110
Total Answers: 114

Location: Guam
Member since Tue, Nov 29, 2022
1 Year ago
;