Releases: Adisk06/JES-LinuxFix
Fixes for linux
JES Linux Compatibility Updates
Overview
This version of the script has been modified to work seamlessly on Linux. Several improvements have been made, including:
- Automatic Java Detection: The script will now automatically search for the appropriate Java installation on your system, eliminating the need for manual configuration.
- Custom Java Path Support: You can specify a custom Java 8 installation path by creating a
java_pathfile in the JES installation directory. - Line Ending Compatibility: The script now works out-of-the-box on Linux systems, without needing manual conversion of line endings.
Additionally, there are minor edits to the add-to-menu.sh script to improve functionality and compatibility.
Setting Up Java for JES on Linux
The script is designed to automatically detect Java 8 (Java 1.8). However, if the script cannot find Java 8 automatically, you can manually set the path by creating a file named java_path in the root directory of your JES installation.
Steps to Manually Set the Java Path
-
Navigate to the JES installation directory:
Open a terminal and change to the directory where JES is installed. This is the directory that contains thejes.shscript. -
Create the
java_pathfile:
In the JES root directory, create a file calledjava_pathby running:touch java_path
-
Specify your Java 8 path:
Inside thejava_pathfile, specify the full path to your Java 8 installation. For example, if your Java 8 installation is located at/usr/lib/jvm/java-1.8.0-openjdk, you can write the path to the file like this:echo "/usr/lib/jvm/java-1.8.0-openjdk" > java_path
This will tell the script to use the specified Java 8 version by setting the
JAVA_HOMEenvironment variable accordingly.
Updates to add-to-menu.sh
The add-to-menu.sh script has been slightly modified to improve compatibility with Linux systems:
- Dynamic Application Title: The script now allows for a dynamic application title, making it easier to use for different applications.
- Improved Icon Handling: The script checks if the icon file exists before attempting to reference it, preventing errors if the icon is missing.
- Desktop File Creation: The
.desktopentry for JES is created with more reliable settings, including handling the icon file and adding necessary MIME types for Python files. - Automatic Database Update: The script attempts to update the application menu database after adding the entry to ensure it appears correctly in your application launcher.
If you need to manually create a .desktop file for JES, you can follow the updated procedure described in the script. The .desktop file will allow you to launch JES from your application menu, making it more accessible.
Final Thoughts
These updates aim to provide a smoother experience for Linux users, with automatic Java detection, customizable Java paths, and an enhanced method of adding JES to the application menu. If you run into any issues, feel free to reach out for support!