ichthyosaurus / harbour-file-browser

A comprehensive file manager for SailfishOS.
https://forum.sailfishos.org/t/file-browser-support-and-feedback-thread/4566
8 stars 8 forks source link

Allow to open directories with xdg-open #30

Closed Arusekk closed 3 years ago

Arusekk commented 3 years ago

(...and while being here, translate app name to Polish)

Since harbour-file-browser is already prepared to take a directory path as a command-line argument, this allows other apps (like SearchNemo) to use e.g. xdg-open /home/nemo/Downloads, and it will by default ask the user for the preferred app, and open the correct directory in File Browser instead of the stock WWW browser, which is normally the only associated with directories.

On desktop Linux distros, apps like Nautilus, Dolphin or other file browsers also have such association.

See https://github.com/sailfishos/sailfish-office/blob/fdf5a30468f0b79ac975f2215abf3e51b435e3df/sailfish-office-openfile.desktop#L10 for an example from core sailfish. See karip#34 for the feature discussion in legacy File Browser 1.x.

I chose %F instead of %U, because harbour-file-browser file:///home/nemo/Downloads does not currently work.

ichthyosaurus commented 3 years ago

Looking good, thank you very much! I'll release a new version this weekend. :) I'll implement support for file:// links before merging.