Working Cache Cleanup

This commit is contained in:
tr1x_em committed 2025-08-11 15:44:07 +05:30
1 parent 7afafe9028
commit e51878cac5
2 files changed
+29 -10

No files matched your search

-3
View File
@@ -142,13 +142,10 @@ class ApplicationsPlugin(PluginBase):
return bool(re.search(pattern, text, re.IGNORECASE))
def _launch_application(self, app: DesktopApp):
print("Original:", app.command_line)
# Remove ALL % codes (e.g., %u, %U, %f, %F, %i, %c, etc.)
cleaned_command = re.sub(r"%\w+", "", app.command_line).strip()
print("Cleaned:", cleaned_command)
# Final command with hyprctl dispatch
final_command = f"hyprctl dispatch exec 'uwsm app -- {cleaned_command}'"
subprocess.Popen(final_command, shell=True)