From fbc2eb8f4e6a0aeb732759a6b359618ff5cef4b5 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 19 Jun 2025 14:08:50 +0545 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=85=20style(screencapture):=20use=20fa?= =?UTF-8?q?bric's=20get=5Frelative=5Fpath=20for=20script=5Fpath=20resoluti?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/launcher/plugins/screencapture.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/launcher/plugins/screencapture.py b/modules/launcher/plugins/screencapture.py index efa7e7f..7cd576f 100644 --- a/modules/launcher/plugins/screencapture.py +++ b/modules/launcher/plugins/screencapture.py @@ -7,6 +7,7 @@ import os import subprocess from typing import List +from fabric.utils import get_relative_path from modules.launcher.plugin_base import PluginBase from modules.launcher.result import Result from utils.icons import screenrecord, screenshots, ssfull, ssregion, stop @@ -22,7 +23,7 @@ class ScreencapturePlugin(PluginBase): self.display_name = "Screencapture" self.description = "Take screenshots and screen recordings" # Path to the screen-capture script - self.script_path = os.path.expanduser("~/Modus/scripts/screen-capture.sh") + self.script_path = get_relative_path("../../../scripts/screen-capture.sh") def initialize(self): """Initialize the screencapture plugin."""