editing and viewing should be one and the same
localBrowse is a file manager/editor to run on a local server
Status: Pre-Alpha
Brought to you by:
typeint
Because localBrowse is web-based, the browser will often try to do stuff with files when viewing. Such as, with HTML files, it shows the output. With many files (such as PHP), it asks you to download. Only if no editor is available it should download.
OK, as of [r9] it only has editing. However, for some files (audio, video) this is impractical. When there is no editor, it has you download a copy (not the original) and open in the default. Rather impractical.
So for some supported types (audio, video) it should default to a player. For some others (HTML) there should be a viewer option.
If there is nothing it can do, it should suggest you open in the default application, giving the name, and a link. It would get it from /usr/share/applications/defaults.list, then the name of the program from name.desktop. The edit would exec the program in the background (using this code snippet) with the file as an arg.
Related
Commit: [r9]
Last edit: Scimonster 2013-04-02
The code snippet above probably won't work. https://sourceforge.net/p/localbrowse/tickets/9/#4d07