From aaefdede35454c4aeafc3c0d5767b1c5d806380b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Ben=C3=ADtez=20Le=C3=B3n?= Date: Fri, 29 Sep 2023 03:48:55 +0100 Subject: [PATCH] fix packages path in Linux with ST4 Fixes #10 --- subl-protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subl-protocol.py b/subl-protocol.py index 9a5c011..669e825 100644 --- a/subl-protocol.py +++ b/subl-protocol.py @@ -29,10 +29,10 @@ def plugin_unloaded(): linux_plugin_unloaded() def linux_plugin_loaded(): - cmd = 'cp "{}/subl-protocol.desktop" ~/.local/share/applications/subl-protocol.desktop &&\ + cmd = 'cp "{}/subl protocol/subl-protocol.desktop" ~/.local/share/applications/subl-protocol.desktop &&\ xdg-mime default subl-protocol.desktop x-scheme-handler/subl' - os.system(cmd.format(sublime.installed_packages_path())) + os.system(cmd.format(sublime.packages_path())) def linux_plugin_unloaded():