I click "ftp://" link in chromium. Chromium send this link to xdg-open. xdg-open see into ".desktop" files and find mime handler "x-scheme-handler/ftp". At now, in my system only Falkon browser has this handler. But I want to open "ftp://" links in Filezilla program. Need only add this line into filezilla.desktop file: > MimeType=x-scheme-handler/ftp; Query current "ftp://" scheme handler in xdg-open: $ xdg-mime query default x-scheme-handler/ftp Set custom handler as default: $ xdg-mime default filezilla.desktop x-scheme-handler/ftp Reproducible: Always Expected Results: "ftp://" links in xdg-open MUST be opened in filezilla program
Created attachment 785561 [details, diff] patch for filezilla.desktop file This patch allows to use filezilla as mime handler for ftp:// scheme.
Command 'xdg-mime default filezilla.desktop x-scheme-handler/ftp' set filezilla program as default handler for "ftp://" links even if filezilla.desktop file does not contain MimeType value. So, changes in filezilla.desktop - is not important for me now. But for users, who does not know linux very well, this adding MimeTypes into desktop file - is a good idea, which helps to use linux without a troubles. Please, add MimeTypes entry into filezilla.desktop file.
https://trac.filezilla-project.org/ticket/12735
Thanks for the report, that looks like valid change and thanks for also filling it upstream (hopefully it will be added there) In the meantime let me add that in tree
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75796551e61712dd022b7bb9cab3cf9bd702ccb8 commit 75796551e61712dd022b7bb9cab3cf9bd702ccb8 Author: Bernard Cafarelli <voyageur@gentoo.org> AuthorDate: 2022-07-07 20:45:15 +0000 Commit: Bernard Cafarelli <voyageur@gentoo.org> CommitDate: 2022-07-07 21:08:15 +0000 net-ftp/filezilla: add ftp scheme handler to desktop file Closes: https://bugs.gentoo.org/852242 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org> .../filezilla/files/filezilla-3.60.1-desktop.patch | 7 +++ net-ftp/filezilla/filezilla-3.60.1-r1.ebuild | 72 ++++++++++++++++++++++ 2 files changed, 79 insertions(+)
Was this ever really tested by anyone? I just opened an ftp:// link in firefox and it offered me filezilla so i took it. While the application was launched the URL was not actually passed which makes the story a bit useless. What would need to be patched as well in that desktop file would be -Exec=filezilla +Exec=filezilla %u Maybe that used to be in the original desktop file at some point, now it is not. (version 3.67.1) While it is weird to patch this outside of upstream, it looks easy enough and upstream was tried. I might propose a patch and possibly open a new bug. But am waiting for feedback first.