File Browser support and feedback thread

yes, 3.4(qml,silica) +updates(fromSFOS4.6:glib2,openssl,qt5.6-base,icu,boost,pango)

1 Like

Hmm okay, then I have to either find a way to implement the bug fix without relying on that property, or Iā€™ll have to mark the app as incompatible with older versions of Sailfish. Of course Iā€™d prefer to keep backwards compatibility.

In the meantime, you can comment out the problematic line: simply put // at the beginning of line 335 in /usr/share/harbour-file-browser/qml/pages/DirectoryPage.qml so that it reads // interactive: false

That should make the app work again for you. Note that some features may not work, e.g. the smart scrollbar wonā€™t be available on your phone. Please post here if you encounter more issues.

1 Like

Hi @ichthyosaurus, thanks for nice work on FB.
On my Gemini PDA when displaying places, three places are shown for the SD card (two fictitious?). Can be this fixed by configuration, because my Xperia 10 III shows the SD card correctly.

If you give me the paths, I will add them to the ignore list in the next release.

Iā€™m surprised how many different configurations are out there - I thought I had fixed all the wrongly detected mount points :).

Thank you so much @ichtyosaurus , wonderful app !!

1 Like

File Browser ages like a fine wine or an old, matured and smelly dutch cheese. I went back to use it as my daily File Tool, thank you ichtyosaurus!

2 Likes

Yes, they are
/protect_s
/protect_f
Thanks

1 Like

Gemini PDA is fixed, thank you. :+1:
But in the Xperia 10 III which was fine in the previous version, I now have 45 dummy connected ā€œremovable mediaā€. :unamused: Should I start adding them to the config file or will you restore the previous state for the 10 III?

2 Likes

Thank you for the nice words, @Seven.of.nine and @fingus! :slight_smile:

Thatā€™s good to hear :).

Oh no, thatā€™s unfortunate. Can you post the contents of ~/.config/harbour-file-browser/harbour-file-browser/ignored-mounts.json? (Note that itā€™s harbour-file-browser/harbour-file-browser but in the changelog I wrote the wrong path.)

The file should be created when the app is first launched. The default contents is:

{
    "data": {
        "basePaths": [
            "/opt/alien/",
            "/apex/",
            "/opt/appsupport/",
            "/vendor/",
            "/home/",
            "/dsp/",
            "/firmware/",
            "/bt_firmware/",
            "/firmware_mnt/",
            "/persist/"
        ],
        "fullPaths": [
            "/",
            "/persist",
            "/protect_s",
            "/protect_f",
            "/dsp",
            "/odm",
            "/opt",
            "/home",
            "/firmware",
            "/bt_firmware",
            "/firmware_mnt",
            "/metadata",
            "/mnt/vendor/persist"
        ]
    },
    "version": "1"
}

The file has two lists: basePaths is a list of paths where all mount points that are detected below these paths are ignored; fullPaths is a list of paths that are only ignored if something is mounted exactly at this path. Empty entries, and a plain / in basePaths are skipped when the file is loaded.

In your case, @lhodas, I hope that itā€™s just a problem with the file not being created properly. On my phone it works like a charmā€¦ If the issue doesnā€™t disappear, I recommend downgrading back to v3.1.1 for now. Iā€™m traveling and wonā€™t be able to make a new release in the next 3-4 weeks.

2 Likes

Hi @lpr , the new v3.2.0 should run again on Sailfish 3.4. Can you give it a try? If it doesnā€™t work, simply go back to 3.1.1 and apply the manual fix again, there have been mostly translation updates since then.

1 Like

Here is my file content of ~/.config/harbour-file-browser/harbour-file-browser/ignored-mounts.json

{
    "data": {
        "basePaths": [
            "/opt/alien/",
            "/apex/",
            "/opt/appsupport/",
            "/vendor/",
            "/home/",
            "/dsp/",
            "/firmware/",
            "/bt_firmware/",
            "/firmware_mnt/",
            "/persist/"
        ],
        "fullPaths": [
            "/",
            "/persist",
            "/protect_s",
            "/protect_f",
            "/dsp",
            "/odm",
            "/opt",
            "/home",
            "/firmware",
            "/bt_firmware",
            "/firmware_mnt",
            "/metadata",
            "/mnt/vendor/persist"
        ]
    },
    "version": "1"
}

I think it is similar to yours.

2 Likes

I have the same issue on my X10III. ignored-mounts.json is all right But the app doesnā€™t honor it. Permissions is 0666.

2 Likes

Thanks for the heads-up! The config file is fine but I made a tiny mistake when loading the base paths. Updating to v3.2.1 should bring things back to normal.

3 Likes

Thanks, issue is fixed on my side.

2 Likes

Gemini PDA and 10 III are fixed, thanks.

1 Like

Q1: is it possible to change/tweak something in File Browser, for the purpose that File Browser opens video files not with the SFOS video player but with LLs vPlayer instead? And mp3 files not with the SFOS mp3 player but with DeadBeef Silica instead?
In other words, where is defined, what file type opens with what app?

Q2: How can I exchange the display of current directory and current path other way round? Now itā€™s current directory above and path below:


I would really like so much to have path above and current directory below!

edit: Q3: is it possible to enable line numbers display in ā€˜editā€™ view of text files? If yes, how?

Please can you tell me the related qml files where to tweak? I canā€™t find it!

Many thanks in advance!

When opening a file, the system should actually ask you how it should be opened. Iā€™m surprised that this isnā€™t the case on your phoneā€¦

I donā€™t know but try searching for ā€œmime typeā€ or ā€œfile associationsā€ in the forum. This isnā€™t something that File Browser can influence, it has to be configured in the system.

The easy way is to just switch the texts but then the top line will still be larger than the bottom line. Is that what you want? Or do you want the path at the top but with a small font size? That would be more complicated.

To try it out: open /usr/share/harbour-file-browser/qml/pages/DirectoryPage.qml and search for PageHeader. Below that you will find these two lines:

title: Paths.formatPathForTitle(page.dir)
description: page.fullPathShown ? Paths.dirName(page.dir) : ""

Change it to:

description: Paths.formatPathForTitle(page.dir)
title: page.fullPathShown ? Paths.dirName(page.dir) : ""

Sadly no. Itā€™s something I miss every time I edit a file but itā€™s too complicated to implement. I would have to implement it from scratch and I feel itā€™s not worth the (large amount of) work.

3 Likes

Thanks very much @ichthyosaurus !
Q1/A1: found /usr/share/applications/mimeinfo.cache and will make a few experiments and report later.

Q2/A2: I did so as you suggested but itā€™s not beautiful and the space on screen is too narrow for displaying the full path in big letters. So I returned it to original state. But while doing so I had another idea and question: Is it possible to change the path display (line below, small letters) in a way that it not cuts the last entry = current folder, but displays the whole path?

1 Like

Give this a try:

description: page.fullPathShown ? page.dir : ""
1 Like

This works like a charm, thanks very much @ichthyosaurus !

1 Like