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

GUI file dialogue not working on WSL #351

Open
1 task done
Aleosiss opened this issue Jun 21, 2023 · 7 comments
Open
1 task done

GUI file dialogue not working on WSL #351

Aleosiss opened this issue Jun 21, 2023 · 7 comments
Labels
bug Something doesn't work as expected

Comments

@Aleosiss
Copy link

Aleosiss commented Jun 21, 2023

Description

When attempting to set a mod output directory, the dialogue instantly closes and I am unable to enter a path.

2023-06-21.19-43-08.mp4

Steps to reproduce

From the history output on a fresh install of Ubuntu on WSL2.0
1. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
2. source "$HOME/.cargo/env"
3. sudo apt-get update
4. sudo apt install build-essential
5. cargo install ferium
6. ferium modpack add kosmolot-unofficial-masa-mods

Operating System

Linux

Are you using the latest version of ferium?

  • I am using the latest version of ferium

Additional Information

Installing on WSL2

@Aleosiss Aleosiss added the bug Something doesn't work as expected label Jun 21, 2023
@theRookieCoder
Copy link
Collaborator

I would recommend using the no-gui version (cargo install ferium --no-default-features) for now while I figure this out.

@theRookieCoder theRookieCoder changed the title Picking output directory dialogue closes instantly GUI Jan 26, 2024
@theRookieCoder theRookieCoder changed the title GUI GUI file dialogue not working on WSL Jan 26, 2024
@ok-coder1
Copy link

@theRookieCoder, you could add a option in ferium for typing the path in.

@theRookieCoder
Copy link
Collaborator

@theRookieCoder, you could add a option in ferium for typing the path in.

There is, all commands that have any directory argument have command line flags for it.

@ok-coder1
Copy link

ok-coder1 commented Oct 19, 2024

@theRookieCoder, you could add a option in ferium for typing the path in.

There is, all commands that have any directory argument have command line flags for it.

So, shouldn't this be closed?

@theRookieCoder
Copy link
Collaborator

theRookieCoder commented Oct 19, 2024

No, the GUI file dialogue still doesn't work via WSL to my knowledge? The command line flag and nogui are just workarounds.

@ok-coder1
Copy link

ok-coder1 commented Oct 19, 2024

How does the dialog box work? It's supposed to be using the Windows dialogue box as AFAIK, WSL doesn't have(install) the Linux file selection dialog right?

@theRookieCoder
Copy link
Collaborator

I use this library called rfd, on linux (including anything running inside WSL) it will communicate using the xdg desktop portal to use the system's default file picker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something doesn't work as expected
Development

No branches or pull requests

3 participants