From 4128a1fe48c63e32196276bbc1eae6ac4871ec5c Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 9 May 2024 15:29:54 -0400 Subject: [Bugfix/Feature] OpenPlugin and default plugins selecting files to run is nice and all but you might not like the plugin you can edit it OpenPlugin Viewer Plugin but instead pop it when you add a file to reduce suprises shortcut viewer is not ready for this so exclude it for now Change-Id: I950599d87f47d42e8c2d59695f6583d497b217f0 adds: default plugin (if any) is selected in the open with dialog --- apps/filetypes.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/filetypes.h') diff --git a/apps/filetypes.h b/apps/filetypes.h index 36d9009a87..4039daf497 100644 --- a/apps/filetypes.h +++ b/apps/filetypes.h @@ -79,9 +79,12 @@ char* filetype_get_plugin(int attr, char *buffer, size_t buffer_len); /* returns true if the attr is supported */ bool filetype_supported(int attr); -/* List avialable viewers */ +/* List avialable viewers and start selected plugin with current_file as argument */ int filetype_list_viewers(const char* current_file); +/* return the plugin filename the user selected for the file Returns NULL if canceled */ +char* filetype_get_viewer(char *buffer, size_t buffer_len, const char* current_file); + /* start a plugin with file as the argument (called from onplay.c) */ int filetype_load_plugin(const char* plugin, const char* file); -- cgit v1.2.3