Firefox open containing folder

Hi all, I would like to ask if any of you have found a solution to get the open containing folder function in Firefox to work. It should open with Konqi but currently it does nothing. I have already tried to set the xdg-mime type for inode/directory without success. Greetings Lioh

On 1/13/24 01:03, Lioh Möller wrote:
Hi all,
I would like to ask if any of you have found a solution to get the open containing folder function in Firefox to work. It should open with Konqi but currently it does nothing. I have already tried to set the xdg-mime type for inode/directory without success.
Greetings Lioh
Lioh, You mean like file:///home/you/somedir/ I'm in FF 115.6 in KDE3 on 15.4 right now and all I have in menu->File is "Open File". Are you talking about using a context menu somewhere or using the bookmarks tool directly? -- David C. Rankin, J.D.,P.E.

Dear David, Am 13.01.24 um 09:34 schrieb David C. Rankin:
On 1/13/24 01:03, Lioh Möller wrote:
Hi all,
I would like to ask if any of you have found a solution to get the open containing folder function in Firefox to work. It should open with Konqi but currently it does nothing. I have already tried to set the xdg-mime type for inode/directory without success.
Greetings Lioh
Lioh,
You mean like
file:///home/you/somedir/
I'm in FF 115.6 in KDE3 on 15.4 right now and all I have in menu->File is "Open File". Are you talking about using a context menu somewhere or using the bookmarks tool directly?
No, If you download something within the download menu you can find a folder Icon besides the filename. Usually by clicking on the Icon, the folder containing the downloaded file is opened. Sadly this does not seem to work on KDE3 with Konqueror. Greetings Lioh

On 1/13/24 05:18, Lioh Möller wrote:
No, If you download something within the download menu you can find a folder Icon besides the filename. Usually by clicking on the Icon, the folder containing the downloaded file is opened. Sadly this does not seem to work on KDE3 with Konqueror.
Yes, yes, I've noticed this too. It opens in some horrible Gtk generic file manager. Now the damn thing launches vscodium. Let me poke around a bit since vscodium wasn't installed too long ago and see what mime-type is involved. -- David C. Rankin, J.D.,P.E.

Lioh Möller composed on 2024-01-13 08:03 (UTC+0100):
I would like to ask if any of you have found a solution to get the open containing folder function in Firefox to work. It should open with Konqi but currently it does nothing. I have already tried to set the xdg-mime type for inode/directory without success.
You haven't tried the keyboard, have you? Just backspace away the current directory name component, leaving the parent last, and hit RETURN. It works the same way in Konq. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata

On 1/13/24 19:11, Felix Miata wrote:
Lioh Möller composed on 2024-01-13 08:03 (UTC+0100):
I would like to ask if any of you have found a solution to get the open containing folder function in Firefox to work. It should open with Konqi but currently it does nothing. I have already tried to set the xdg-mime type for inode/directory without success.
You haven't tried the keyboard, have you? Just backspace away the current directory name component, leaving the parent last, and hit RETURN. It works the same way in Konq.
I'm not sure you can backspace over anything after clicking the downloads button in the menubar. I think Lioh means when you click the download button and then click the folder -- that doesn't open correctly. It doesn't, it is a mess. I clicked the folder and it opened in vscodium. Searching around a bit it gets worse. You have /etc/mime.types and you have xdg-mime and you have every app fighting over who gets to control what mime-type, e.g. $ xdg-mime query default image/png brave-browser.desktop WHAT? I never told brave it could handle png images... What about svg files? $ xdg-mime query default image/svg-xml gpicview.desktop WHAT? Or: $ xdg-mime query default image/svg+xml gimp.desktop Double WHAT? (why isn't that inkscape like it should be?) Ohh...... I so recall this being a problem area, not just for KDE3, but for all desktops. I think there is a default XDG document spec that goes into more detail about mime-type handling -- but as with most documentation it is likely sorely out of date from a time before systemd... -- David C. Rankin, J.D.,P.E.

David C. Rankin composed on 2024-01-13 19:53 (UTC-0600):
Felix Miata wrote:
Lioh Möller composed on 2024-01-13 08:03 (UTC+0100):
I would like to ask if any of you have found a solution to get the open containing folder function in Firefox to work. It should open with Konqi but currently it does nothing. I have already tried to set the xdg-mime type for inode/directory without success.
You haven't tried the keyboard, have you? Just backspace away the current directory name component, leaving the parent last, and hit RETURN. It works the same way in Konq.
I'm not sure you can backspace over anything after clicking the downloads button in the menubar. I think Lioh means when you click the download button and then click the folder -- that doesn't open correctly.
It doesn't, it is a mess. I clicked the folder and it opened in vscodium.
This kind of thing is *a* reason why I download with a downloader instead of a browser. I open the location where I want the file downloaded to first, then I download with wget. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata

On 2024-01-14 03:06, Felix Miata wrote:
David C. Rankin composed on 2024-01-13 19:53 (UTC-0600):
Felix Miata wrote:
Lioh Möller composed on 2024-01-13 08:03 (UTC+0100):
I would like to ask if any of you have found a solution to get the open containing folder function in Firefox to work. It should open with Konqi but currently it does nothing. I have already tried to set the xdg-mime type for inode/directory without success.
You haven't tried the keyboard, have you? Just backspace away the current directory name component, leaving the parent last, and hit RETURN. It works the same way in Konq.
I'm not sure you can backspace over anything after clicking the downloads button in the menubar. I think Lioh means when you click the download button and then click the folder -- that doesn't open correctly.
It doesn't, it is a mess. I clicked the folder and it opened in vscodium.
This kind of thing is *a* reason why I download with a downloader instead of a browser. I open the location where I want the file downloaded to first, then I download with wget.
That's cumbersome, it needs more clicks. It just works in my Leap 15.4/15.5 system (not updated recently) with XFCE. Click the link in Firefox, then open the folder (which in my case it is always the same folder) with a click on the file or folder in the the downloaded list in FF. It should just work in KDE3 too. zypper se vscodium ... No matching items found. Oh, and: cer@Telcontar:~> xdg-mime query default image/png wine-extension-png.desktop cer@Telcontar:~> which is weeeeird. Yet I tried and it opens with gwenview. cer@Telcontar:~> xdg-mime query default image/svg-xml cer@Telcontar:~> xdg-mime query default image/svg+xml gimp.desktop cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)

On 1/13/24 20:49, Carlos E. R. wrote:
That's cumbersome, it needs more clicks.
Nah, I probably use wget 99% of the time, so it's not an issue for me -- I'm just trying to help Lioh along (and I've found the problem annoying in the past...)
It just works in my Leap 15.4/15.5 system (not updated recently) with XFCE. Click the link in Firefox, then open the folder (which in my case it is always the same folder) with a click on the file or folder in the the downloaded list in FF.
It should just work in KDE3 too.
zypper se vscodium ... No matching items found.
It's just vscode with the MS telemetry disabled: https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/rpms/
Oh, and:
cer@Telcontar:~> xdg-mime query default image/png wine-extension-png.desktop cer@Telcontar:~>
which is weeeeird. Yet I tried and it opens with gwenview.
cer@Telcontar:~> xdg-mime query default image/svg-xml cer@Telcontar:~> xdg-mime query default image/svg+xml gimp.desktop
I have searched for a rhyme or reason why things are listed the way they are and I don't have a firm answer. However, it appears that xdg-mime provides a default (like a default signal handler), but that can be overridden by many layers of overrides, e.g. ~/.local/share/mime ~/.local/share/applications/defaults.list ~/.local/share/applications/mimeapps.list ~/.local/share/applications/mimeinfo.cache ~/.config/mimeXXX (for Plasma) /etc/mime.types /usr/share/applications/mimeinfo.cache /usr/share/applications/mimeapps.list /usr/share/applications/defaults.list Those are at least some I've stumbled across. The rub is figuring out where in the hierarchy the override is happening, like in your case of:
cer@Telcontar:~> xdg-mime query default image/png wine-extension-png.desktop cer@Telcontar:~>
which is weeeeird. Yet I tried and it opens with gwenview.
There isn't any sane tool that can lookup a mime-type and tell you where it is being set (but that would be a great new Linux utility). We can name it 'mlu' (for mime-type lookup :) -- David C. Rankin, J.D.,P.E.

Hi all, I think I got it. I would be glad if you could verify it on your system. First I have created a .desktop file: ~/.local/share/applications/kde-kfmclient_dir.desktop [Desktop Entry] Categories=Qt;KDE;System; Exec=kfmclient openURL %u inode/directory Icon=konqueror InitialPreference=9 MimeType= Name=Konqueror NoDisplay=true Terminal=false Type=Application Afterwards I have set the default mime type for inode/directory to kde-kfmclient_dir.desktop xdg-mime default kde-kfmclient_dir.desktop inode/directory Greetings Lioh Am 14.01.24 um 06:51 schrieb David C. Rankin:
On 1/13/24 20:49, Carlos E. R. wrote:
That's cumbersome, it needs more clicks.
Nah, I probably use wget 99% of the time, so it's not an issue for me -- I'm just trying to help Lioh along (and I've found the problem annoying in the past...)
It just works in my Leap 15.4/15.5 system (not updated recently) with XFCE. Click the link in Firefox, then open the folder (which in my case it is always the same folder) with a click on the file or folder in the the downloaded list in FF.
It should just work in KDE3 too.
zypper se vscodium ... No matching items found.
It's just vscode with the MS telemetry disabled:
https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/rpms/
Oh, and:
cer@Telcontar:~> xdg-mime query default image/png wine-extension-png.desktop cer@Telcontar:~>
which is weeeeird. Yet I tried and it opens with gwenview.
cer@Telcontar:~> xdg-mime query default image/svg-xml cer@Telcontar:~> xdg-mime query default image/svg+xml gimp.desktop
I have searched for a rhyme or reason why things are listed the way they are and I don't have a firm answer. However, it appears that xdg-mime provides a default (like a default signal handler), but that can be overridden by many layers of overrides, e.g.
~/.local/share/mime ~/.local/share/applications/defaults.list ~/.local/share/applications/mimeapps.list ~/.local/share/applications/mimeinfo.cache ~/.config/mimeXXX (for Plasma) /etc/mime.types /usr/share/applications/mimeinfo.cache /usr/share/applications/mimeapps.list /usr/share/applications/defaults.list
Those are at least some I've stumbled across. The rub is figuring out where in the hierarchy the override is happening, like in your case of:
cer@Telcontar:~> xdg-mime query default image/png wine-extension-png.desktop cer@Telcontar:~>
which is weeeeird. Yet I tried and it opens with gwenview.
There isn't any sane tool that can lookup a mime-type and tell you where it is being set (but that would be a great new Linux utility). We can name it 'mlu' (for mime-type lookup :)

On 1/15/24 11:07, Lioh Möller wrote:
Hi all,
I think I got it. I would be glad if you could verify it on your system.
First I have created a .desktop file:
~/.local/share/applications/kde-kfmclient_dir.desktop
[Desktop Entry] Categories=Qt;KDE;System; Exec=kfmclient openURL %u inode/directory Icon=konqueror InitialPreference=9 MimeType= Name=Konqueror NoDisplay=true Terminal=false Type=Application
Afterwards I have set the default mime type for inode/directory to kde-kfmclient_dir.desktop
xdg-mime default kde-kfmclient_dir.desktop inode/directory
Greetings Lioh
That's pretty slick... Somewhere in the depth of my mind I recall something close to this for another firefox mime-type issue, but that has been 10-15 years ago -- and after passing 50, not all details of desktop tweaks are kept in instant recall anymore (and I wonder if in "any kind" of recall any more :) Will have time tomorrow evening to verify and see if downloads open in konqueror instead of vscodium.... -- David C. Rankin, J.D.,P.E.
participants (4)
-
Carlos E. R.
-
David C. Rankin
-
Felix Miata
-
Lioh Möller