burtonageo / cargo-bundle

Wrap rust executables in OS-specific app bundles
Other
1.08k stars 74 forks source link

Local assets loading doesn't work when there is whitespace in the path #141

Closed Toldoven closed 1 year ago

Toldoven commented 1 year ago

Tested on Linux (Pop OS)

#![allow(non_snake_case)]
use dioxus::prelude::*;

fn main() {
    dioxus_desktop::launch(App);
}

fn App(cx: Scope) -> Element {
    cx.render(rsx! {
        img {
            src: "/home/kpids/nowhitespace.png"
        }
        img {
            src: "/home/kpids/white space.png"
        }
    })
}

Only the first image will load successfully. Assuming both files are valid

Toldoven commented 1 year ago

Wrong repo, sorry