mate-desktop / caja

Caja, the file manager for the MATE desktop
https://mate-desktop.org/
Other
264 stars 145 forks source link

Make Caja as a protocol handler for webdav://, sftp//, smb://, ftp:// etc #1706

Open stokito opened 1 year ago

stokito commented 1 year ago

When I clicking in browser on a link like dav:// then xdg-open is called and it looks for a registered app that can handle the protocol. If any app supports the protocol schema then it must declare it in it's *.desktop file.

When installing these desktop files are stored into /usr/share/applications For example you can add the following line to the dolphin.desktop file

MimeType=x-scheme-handler/dav;x-scheme-handler/davs;x-scheme-handler/webdav;x-scheme-handler/webdavs;

Then you need to execute sudo update-desktop-database and after that when clicking on the dav://example.com link the Dolphin will be started

We need to add the MimeType line to the file caja-browser.desktop

Similar problems are for Gnome Files (Nautilus), KDE Dolphin and probably others file manages.