YARC-Official / YARC-Launcher

The official launcher for YARG (a.k.a. Yet Another Launcher or YAL)
Other
59 stars 9 forks source link

Scope configuration error when launching pre-release 1.0.0b #50

Open SpasilliumNexus opened 1 month ago

SpasilliumNexus commented 1 month ago

Upon launching YARC 1.0.0b, I'm presented with a white screen with an error about a configured scope.

Screenshot_20240825_130206

Checking the logs, It's just a repeated output of this:

[2024-08-25][16:54:52][DEBUG][reqwest::connect] starting new connection: https://releases.yarg.in/ [2024-08-25][16:54:52][ERROR][webview] "path not allowed on the configured scope: /home/AmpliFreQuency/.config/in.yarg.launcher/"

I am running Bazzite 40 (Fedora) on a Steam Deck Screenshot_20240825_130344

I have tried launching in both gaming and desktop mode, with and without the WEBKIT_DISABLE_COMPOSITING_MODE launch option, to no avail.

Versions prior to 1.0.0.b work fine.

EliteAsian123 commented 1 month ago

Thanks for the report! So, it's likely because Tauri isn't letting the settings file to be created because this is the scope that is defined: image According to the docs, this is what that resolves to: image ${bundleIdentifier} is in.yarg.launcher, and ${configDir} resolves to: image

So my question is, does $HOME correctly point to /home/AmpliFreQuency/, and does $XDG_CONFIG_HOME correctly point to /home/AmpliFreQuency/.config/? If so, this is likely a bug from Tauri's side that I'll have to look into.

Sorry for the inconvenience!

SpasilliumNexus commented 1 month ago

Not a problem at all!

I can confirm that $HOME and @XDG_CONFIG_HOME points to /home/AmpliFreQuency and /home/AmpliFreQuency/.config respectively.

Screenshot_20240825_155933

EliteAsian123 commented 1 month ago

Is that colon supposed to be on the end of $XDG_CONFIG_HOME? (I don't use linux so idk lol)

SpasilliumNexus commented 1 month ago

Good eye! That is definitely not supposed to be there. I've created an override in my ~/.bashrc to fix that:

if ! [[ "$XDG_CONFIG_HOME" =~ "$HOME/.config" ]]; then XDG_CONFIG_HOME="$HOME/.config" fi export XDG_CONFIG_HOME

And for good measure, I tried using the direct path of /home/AmpliFreQuency/.config

if ! [[ "$XDG_CONFIG_HOME" =~ "/home/AmpliFreQuency/.config" ]]; then XDG_CONFIG_HOME="/home/AmpliFreQuency/.config" fi export XDG_CONFIG_HOME

Screenshot_20240825_161751

Unfortunately, I still get the scope error with YARC. The in.yarg.launcher gets created in the .config folder of my home directory, along with a logs subdirectory in it and a YARC Launcher.log, but nothing else in that in.yarg.launcher folder is created.

EliteAsian123 commented 1 month ago

Now (again, my lack of Linux knowledge is gonna be apparent here), does it also update that value for the launcher, or is it only in the console?

SpasilliumNexus commented 1 month ago

The change seems to only affect console and not the launcher at all :/