Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SpasilliumNexus opened this issue Aug 25, 2024 · 6 comments
Open

Comments

@SpasilliumNexus
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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

@SpasilliumNexus
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@SpasilliumNexus @EliteAsian123 and others