Working Cache Cleanup
This commit is contained in:
1 parent
7afafe9028
commit
e51878cac5
2 files changed
+29
-10
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user