LostKnight wrote: Thu Apr 16, 2026 3:54 pm
compbatant wrote: Thu Apr 16, 2026 9:16 am
When you enter just "start.sh" then command line is searching for executable in PATH variable. Current directory isn't there by default. Only directories like "/bin" '/usr/bin" etc.
In the ft9.zip file the start.bat and start.sh files have 1 line:
Code: Select all
java --sun-misc-unsafe-memory-access=allow --enable-native-access=ALL-UNNAMED -jar desktop.jar 920 640
as you can see from my previous post I did a /cd command in my terminal (Debian Linux) changing my directory to
and tried running the start.sh - it was not found.
So I created my own .sh file with these lines that are based on the FT v8 bash files except for the final /ft9/:
Code: Select all
cd /media/10/FT-MMOG/ft9/
java -jar desktop.jar 634 518
And my OpenBox
file has:
Code: Select all
<keybind key="C-A-6">
<action name="Execute">
<command>/media/10/FT-MMOG/ft9/ft6.sh</command>
</action>
</keybind>
Now everything works just fine.
FT·260416·104102.jpg
Please read again my previous message.
Changing directory is not enough. You must type
./start.sh
or
sh start.sh
When you enter just "start.sh" then system search for command in directories defined in PATH global variable. In general in PATH variable there is no current directory.
The $PATH is a specific system variable containing a list of directories separated by colons (:). When you type a command (like ls), the shell searches these directories in order to find the executable file.View your PATH: Run echo $PATH in the terminal.Common directories in $PATH: /bin, /usr/bin, and /usr/local/bin.
You don't have "start.sh" script put in /bin or /usr/bin etc directory so it is not found.
It doesn't matter where is you current directory set by "cd" command.