32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From e3bb3547c6674ae354c062198ccf0f440f48e6ef Mon Sep 17 00:00:00 2001
|
|
From: Marek Kasik <mkasik@redhat.com>
|
|
Date: Fri, 30 May 2025 16:01:30 +0200
|
|
Subject: [PATCH] shell: Launch target file
|
|
|
|
Launch target file instead of openning the same file again when
|
|
launch action is triggered.
|
|
---
|
|
shell/src/document_view/signals.rs | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/shell/src/document_view/signals.rs b/shell/src/document_view/signals.rs
|
|
index 8f184f5e4..0e4d1219d 100644
|
|
--- a/shell/src/document_view/signals.rs
|
|
+++ b/shell/src/document_view/signals.rs
|
|
@@ -260,7 +260,11 @@ impl imp::PpsDocumentView {
|
|
// does, simply ignore it
|
|
let file = self.file().unwrap();
|
|
if file.uri() != uri {
|
|
- application::spawn(Some(&file), action.dest().as_ref(), Some(self.mode.get()));
|
|
+ application::spawn(
|
|
+ Some(&gio::File::for_uri(&uri)),
|
|
+ action.dest().as_ref(),
|
|
+ Some(self.mode.get()),
|
|
+ );
|
|
}
|
|
}
|
|
|
|
--
|
|
2.51.0
|
|
|