To get the currently open apps in the dock on macOS, Linux, and Windows, you can use the tauri::command
module to execute the appropriate command for each operating system.
Here's an example Rust code snippet that retrieves the currently open apps in the dock for each OS:
main.rs628 chars21 lines
Note that you will need to replace "some-dock-command"
in the code snippet with the appropriate command for retrieving the open apps on each OS. Additionally, you will need to implement the logic to parse the stdout
for each OS and extract the open apps information.
gistlibby LogSnag