You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ability to pass custom exec arguments and env variables #59
Is your feature request related to a problem? Please describe.
I'm always frustrated when using wayland and HDPI.
Describe the solution you'd like
able to pass in custom env variables and scale factors with the project will help a lot while using hyprland and/or niri, this will at least give me some scaling options specific to unity
Are you asking for the ability to pass environment variables from UnityHubNative to the Unity Editor? Or do you want to pass environment variables to UnityHubNative to control its scaling?
I am asking to pass in env variable/cmd arguments from UnityHubNative to the Unity Editor.
I did modify the code to change the exec command in code and recompiled it. Worked exactly as expected on HDPi, GDK_SCALE,2 was passed in and the editor was usable on 4K, but I was not able to add in UI elements etc, otherwise I would have opened a PR.
Also tried a combination of GDK_SCALE and DPI env variables and that made the UI more in line, and serviceable.
All in all if we can get the ability to pass in env variables and other arguments via UnityHubNative that will be a huge use-ability boost compared to the default UnityHub, which just a glorified Ad spot at this point, and does not pass the env variable to the editor used to open the hub.
Activity
Ravbug commentedon Nov 8, 2025
Are you asking for the ability to pass environment variables from UnityHubNative to the Unity Editor? Or do you want to pass environment variables to UnityHubNative to control its scaling?
madratzz commentedon Nov 9, 2025
I am asking to pass in env variable/cmd arguments from UnityHubNative to the Unity Editor.
I did modify the code to change the exec command in code and recompiled it. Worked exactly as expected on HDPi, GDK_SCALE,2 was passed in and the editor was usable on 4K, but I was not able to add in UI elements etc, otherwise I would have opened a PR.
madratzz commentedon Nov 9, 2025
Also tried a combination of GDK_SCALE and DPI env variables and that made the UI more in line, and serviceable.
All in all if we can get the ability to pass in env variables and other arguments via UnityHubNative that will be a huge use-ability boost compared to the default UnityHub, which just a glorified Ad spot at this point, and does not pass the env variable to the editor used to open the hub.
madratzz commentedon Nov 9, 2025
Adding the code snippet, used gemini for the modifications :D
Add Preferences dialog for custom env vars and extra args (fixes Ravb…