From 03efa27327bb811e0741990deb51014d306ab3b8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 29 Aug 2023 01:49:32 +0100 Subject: [PATCH] Run VSCode in shell mode to ensure paths are expanded correctly. (#6) This could have been done manually, but relying on the shell should cover more edge cases --- krunner_vscode/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/krunner_vscode/__main__.py b/krunner_vscode/__main__.py index 0fa5cc4..ef90470 100755 --- a/krunner_vscode/__main__.py +++ b/krunner_vscode/__main__.py @@ -95,8 +95,8 @@ class Runner(dbus.service.Object): def Run(self, data: str, action_id: str): subprocess.run([ "code" if not action_id else "xdg-open", - data - ]) + str(data) + ], shell=True) runner = Runner() loop = GLib.MainLoop()