Skip to content

Unable to set project directory on WSL #211

Open
@NickCondron

Description

@NickCondron

Version: 2.7.1
Platform: WSL
OS: Official Arch WSL image

Steps to repro:

  1. Run objdiff gui
  2. File->Project
  3. Attempt to select Project Directory

The following error line is printed to the terminal: ERROR rfd::backend::xdg_desktop_portal: pick_folder error No such file or directory (os error 2)

Full output log:

2025-05-26T02:24:51.856353Z  INFO eframe: Both the glow and wgpu renderers are available. Using wgpu.    
2025-05-26T02:24:51.860806Z  WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_EXT_swapchain_colorspace    
2025-05-26T02:24:51.863494Z  INFO wgpu_hal::vulkan::instance: Debug utils not enabled: debug_utils_user_data not passed to Instance::from_raw    
2025-05-26T02:24:51.869692Z  INFO wgpu_hal::gles::egl: Using Wayland platform    
Dropped Escape call with ulEscapeCode : 0x03007703
2025-05-26T02:24:51.950236Z  WARN wgpu_hal::gles::egl: Re-initializing Gles context due to Wayland window    
Dropped Escape call with ulEscapeCode : 0x03007703
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
Dropped Escape call with ulEscapeCode : 0x03007703
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
Dropped Escape call with ulEscapeCode : 0x03007703
2025-05-26T02:24:52.125859Z  WARN wgpu_hal::vulkan::adapter: Adapter is not Vulkan compliant, hiding adapter: Microsoft Direct3D12 (AMD Radeon RX 9070 XT)    
2025-05-26T02:24:52.125916Z  WARN wgpu_hal::vulkan::adapter: Adapter is not Vulkan compliant, hiding adapter: Microsoft Direct3D12 (AMD Radeon(TM) Graphics)    
2025-05-26T02:24:52.128268Z  INFO wgpu_core::instance: Adapter AdapterInfo { name: "D3D12 (AMD Radeon(TM) Graphics)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "4.6 (Core Profile) Mesa 25.1.1-arch1.1", backend: Gl }
    
2025-05-26T02:24:52.128363Z  WARN wgpu_hal::vulkan::adapter: Adapter is not Vulkan compliant, hiding adapter: Microsoft Direct3D12 (AMD Radeon RX 9070 XT)    
2025-05-26T02:24:52.128414Z  WARN wgpu_hal::vulkan::adapter: Adapter is not Vulkan compliant, hiding adapter: Microsoft Direct3D12 (AMD Radeon(TM) Graphics)    
2025-05-26T02:24:52.130194Z  INFO wgpu_core::instance: Adapter AdapterInfo { name: "D3D12 (AMD Radeon(TM) Graphics)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "4.6 (Core Profile) Mesa 25.1.1-arch1.1", backend: Gl }
    
2025-05-26T02:24:56.124444Z ERROR rfd::backend::xdg_desktop_portal: pick_folder error No such file or directory (os error 2)    

I'm willing to work on fixing this, but I'd appreciate some direction. I poked around the repo briefly, but I couldn't find the relevant code. I'm assuming based on the error message that objdiff is trying to open a prompt with a default directory that doesn't exist.

EDIT: Confirmed also broken on v3.0.0-beta.8 although the error message is slightly different:

2025-05-26T05:03:41.222565Z ERROR rfd::backend::xdg_desktop_portal: Failed to pick folder: Portal request failed: org.freedesktop.zbus.Error: The name is not activatable    
2025-05-26T05:03:41.241371Z ERROR rfd::backend::xdg_desktop_portal: Failed to pick folder with zenity: No such file or directory (os error 2)    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions