switch to libcosmics builtin rfd instead of our own

This commit is contained in:
Chris Cochrun 2025-03-15 23:16:47 -05:00
parent 66e33be26c
commit 54ef90442e
6 changed files with 22 additions and 109 deletions

View file

@ -1,5 +1,6 @@
use cosmic::dialog::ashpd::url::Url;
// use cosmic::dialog::ashpd::url::Url;
use crisp::types::{Keyword, Symbol, Value};
use gstreamer::query::Uri;
use iced_video_player::Video;
use miette::{miette, Result};
use serde::{Deserialize, Serialize};
@ -58,7 +59,7 @@ impl TryFrom<Background> for Video {
value: Background,
) -> std::result::Result<Self, Self::Error> {
Video::new(
&Url::from_file_path(value.path)
&url::Url::from_file_path(value.path)
.map_err(|_| ParseError::BackgroundNotVideo)?,
)
.map_err(|_| ParseError::BackgroundNotVideo)