You are not logged in.
I'm a KDE plasma user and I'm having a bit of trouble.
I have .sh files but when I right click on them and select "Run In Konsole", it displays an error like this:
Warning: Could not find '/home/username/Desktop/filename.sh', starting '/usr/bin/bash' instead. Please check your profile settings.I have gone to settings, created a new profile (because I can't edit the Built-In one), set "Command" to
/bin/bash but is still shows the same error.
How do I fix this? I'm a bit of a newbie.
Last edited by raxmax (2025-05-06 13:30:50)
Offline
stat /home/username/Desktop/filename.sh # I suspect it's not executable?
file /home/username/Desktop/filename.shOffline
stat /home/username/Desktop/filename.sh # I suspect it's not executable? file /home/username/Desktop/filename.sh
This is the result of those commands: https://ibb.co/N6MY64N3
Offline
Please just past text as text in the future.
In any case - as seth suspected - your .sh file is not executable, and also lacks a shebang to define it as a shell script to run. To fix the first issue chmod +x your scripts that you intend to be executable, for the second problem add
#!/bin/bashor so as the very first line of the shell script
Last edited by V1del (2025-05-04 18:39:25)
Offline
Please just past text as text in the future.
In any case - as seth suspected - your .sh file is not executable, and also lacks a shebang to define it as a shell script to run. To fix the first issue chmod +x your scripts that you intend to be executable, for the second problem add
#!/bin/bashor so as the very first line of the shell script
Thanks! This fixed the error
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline