This script creates a .desktop entry for Unreal Engine, making it accessible from the application menu on Linux distributions.
The script automates the process of creating a desktop application entry for Unreal Engine on Linux. It prompts the user for several details to customize the entry.
- Prompts for the Unreal Engine installation path.
- Optionally converts the default
.bmpicon to.pngusing ImageMagick (necessary on GNOME). - Allows using a custom name for the application entry based on the installation directory.
- Creates a
unreal-engine.desktopfile in~/.local/share/applications/.
- A Linux-based operating system.
- Unreal Engine installed.
- ImageMagick (optional): Required only if you choose to convert the icon. You can typically install it via your distribution's package manager (e.g.,
sudo apt install imagemagickon Debian/Ubuntu).
-
Make the script executable:
chmod +x unreal-engine-entry-creator.sh
-
Run the script:
./unreal-engine-entry-creator.sh
-
Follow the prompts:
- Enter the Unreal Engine installation path: Provide the full path to your Unreal Engine installation directory (e.g.,
/home/user/Games/UE_5.4). - Force icon conversion: Answer
yif you want to convert the icon from.bmpto.png. This is recommended for Gnome. - Use path as name: Answer
yif you want the application menu entry to be named after the installation folder (e.g.,UE_5.4). Otherwise, it will be named "Unreal Engine". - Add entry name: If you answer
nto the previous question, you will be prompted to enter the desired name for the entry.
- Enter the Unreal Engine installation path: Provide the full path to your Unreal Engine installation directory (e.g.,
After the script finishes, you should be able to find the Unreal Engine entry in your application menu.