Skip to content

Instantly share code, notes, and snippets.

@vicenterusso
Last active August 11, 2024 00:56
Show Gist options
  • Save vicenterusso/41730e6a4e8fce35d129ef47490ae773 to your computer and use it in GitHub Desktop.
Save vicenterusso/41730e6a4e8fce35d129ef47490ae773 to your computer and use it in GitHub Desktop.
Unity 3D - Fedora - Setup -- Desktop Icon / Android SDK / Rider IDE

KDE Fix Icon (Wayland?)

Create the desktop file

nano ~/.local/share/applications/unity-editor.desktop
[Desktop Entry]
Name=Unity Editor
Exec=/home/USER/Unity/Hub/Editor/2022.3.40f1/Editor/Unity
Icon=/home/USER/Unity/Hub/Editor/2022.3.40f1/Editor/Data/Resources/LargeUnityIcon.png
Type=Application
StartupNotify=true

Run

chmod +x ~/.local/share/applications/unity-editor.desktop
update-desktop-database ~/.local/share/applications/

Done.

Rider Default IDE

I had this problem of Rider not being recognized after restarting Unity. I fixed by doing this:

Make sure both paths are created and with permissions

Edit -> Preferences -> Package Manager

/home/<user>/.config/unity3d/cache
/home/<user>/.local/share/unity3d

Android SDK

My .zshrc:

export JAVA_HOME=/home/<user>/Unity/Hub/Editor/2022.3.40f1/Editor/Data/PlaybackEngines/AndroidPlayer/SDK
export PATH=$JAVA_HOME/bin:$PATH

which java should point to the same sdk above. Fedora comes with a builtin java that needs the symlimk to be replaced or removed

/usr/bin/java -> /home/<user>/Unity/Hub/Editor/2022.3.40f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment