1
Fork 0
mirror of https://github.com/j1g5awi/krunner-vscode.git synced 2024-11-21 07:49:31 +00:00

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
This commit is contained in:
Jake Howard 2023-08-29 01:49:32 +01:00 committed by GitHub
parent ea2aba100f
commit 03efa27327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()