tauri-apps / tauri-apps/plugins-workspace

[feat] Adding flags to plugin-opener

Open
#2,614 0 comments 0 reactions 0 assignees View on GitHub
plugin: opener type: feature request
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

I don't know if this is even feasible, but I have a use case (admittedly rather niche) where I am using plugin-opener to open pptx files directly within my tauri app. The problem is that I need to open them directly into slideshow mode, which, in the windows ui, can be done by right clicking the pptx and selecting "Show" in the context menu.

Under the hood, this simply adds a /S flag to the open shell command, ie:

Normal mode:

`"C:\Program Files\Microsoft Office\root\Office16\POWERPNT.exe" "C:\Users\username\Documents\presentation.pptx"`

Slideshow Mode:

`"C:\Program Files\Microsoft Office\root\Office16\POWERPNT.exe" /S "C:\Users\username\Documents\presentation.pptx"`

I have had to use the shell plugin to get around this in my implementation, but it brought it's own headaches with first needing to detect the path of the powerpoint exe and other things, would be great to just be able to open in the default app but with a flag, or maybe be able to simulate a context menu or something.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.