We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d4425 commit 67d1c63Copy full SHA for 67d1c63
zulipterminal/platform_code.py
@@ -112,3 +112,19 @@ def normalized_file_path(path: str) -> str:
112
return path.replace("/", "\\")
113
114
return path
115
+
116
117
+def process_media_tool() -> str:
118
+ """
119
+ Returns the media tool command as per platform.
120
121
+ if PLATFORM == "WSL":
122
+ tool = "explorer.exe"
123
+ elif PLATFORM == "Linux":
124
+ tool = "xdg-open"
125
+ elif PLATFORM == "MacOS":
126
+ tool = "open"
127
+ else:
128
+ tool = "invalid"
129
130
+ return tool
0 commit comments