diff options
author | quentin konieczko <konieczko@gmail.com> | 2023-04-11 08:00:01 +0200 |
---|---|---|
committer | quentin konieczko <konieczko@gmail.com> | 2023-04-11 09:10:40 +0200 |
commit | 344f3a9ba3752f86561b0af97cf8e2d8ba2e7181 (patch) | |
tree | fe5fb084be3faab80b84a3ddd4b960a7a96ea834 /src/event_exec.rs | |
parent | 6581528cc42f2bc5b94b63207d90b6f64c3606da (diff) |
FIX: isomounter used current directory path instead of selected file path
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r-- | src/event_exec.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs index aff37b9..fefe41b 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -1720,7 +1720,11 @@ impl EventExec { /// `/run/media/$CURRENT_USER/fm_iso` /// Ask a sudo password first if needed. It should always be the case. pub fn event_mount_iso_drive(status: &mut Status) -> Result<()> { - let path = status.selected_path_str().to_owned(); + let path = status + .selected_non_mut() + .path_content + .selected_path_string() + .context("Couldn't parse the path")?; if status.iso_mounter.is_none() { status.iso_mounter = Some(IsoMounter::from_path(path)); } |