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

Cannot launch launcher because file exists #433

Open
t0msk opened this issue Sep 21, 2024 · 2 comments
Open

Cannot launch launcher because file exists #433

t0msk opened this issue Sep 21, 2024 · 2 comments

Comments

@t0msk
Copy link

t0msk commented Sep 21, 2024

When I tried to play Genshin I got "X" instead of Play button like this:

image

So I uninstalled launcher, deleted game folder and tried to reinstall launcher again, but after that launcher doesnt open anymore and I just get this error:

"name" = "anime-game-launcher"
"operating_system" = "Arch Linux Rolling Release [64-bit]"
"crate_version" = "3.12.1"
"explanation" = """
Panic occurred in file 'src/main.rs' at line 114
"""
"cause" = 'Failed to create launcher folder: Os { code: 17, kind: AlreadyExists, message: "File exists" }'
"method" = "Panic"
"backtrace" = """

   0: 0x56d038bcade2 - <unresolved>
   1: 0x56d038b22f19 - <unresolved>
   2: 0x56d038bc722d - <unresolved>
   3: 0x78049c091e08 - <unresolved>
   4: 0x78049c091ecc - __libc_start_main
   5: 0x56d038a69d15 - <unresolved>
   6:        0x0 - <unresolved>"""

I understand that there is some file exists in my system, but log could be more helpful and say which file, because I dont know where it can be located, maybe improvement to future make that code in line 114 with some "try catch" if it exists do something and not just crash.

@H2102M
Copy link

H2102M commented Sep 23, 2024

Maybe try deleting ~/.local/share/anime-game-launcher/ and ~/.cache/anime-game-launcher/.
https://github.com/an-anime-team/an-anime-game-launcher/blob/main/src/main.rs#L113

@t0msk
Copy link
Author

t0msk commented Sep 23, 2024

Yeah that solved issue :) maybe there could be function if it exists use it or remove it automatically :)

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

2 participants