[Bug] "Hardcoded" PhoneMemory-folder makes /home/nemo practically inaccessible
@llewelld I was surprised to see, that I cannot simply select /home/nemo as my default folder in FileCase ≥ 0.2.1, but was relieved for a second when I found your commit 7369833 with its headline and description:
Remove hardcoded references to /home/nemoMoves the definition of the home folder into the settings file and defaults to /home/defaultuser.
But then I discovered, that:
One cannot change this setting at the GUI: This is an unsurmountable obstacle for many.
The new settings option is called "home", which is in stark contrast to all other options being multi-word options in "CamelCase" and the term used at the GUI ("Phone memory").
Any documentation or a simple description how to use this is lacking: I did that in the section "TL;DR" here.
The unconditional introduction of a new default value (/home/defaultuser) for a new setting (home) breaks extant installations of FileCase, which were using /home/nemo, when updating them to any version ≥ 0.2.1.
IMO performing this change in such a manner is a bit "evil", because it will leave many helplessly stranded. It took me more than 15 minutes of research and testing to comprehend how to utilise this correctly.
My criticism ultimately is, that this commit is only a half-step towards implementing a GUI option in FileCase's settings to make this option accessible for an average user.
My suggestion is to offer /home/nemo and /home/defaultuser as predefined values, but to allow for inputting any path.
Hence I suggested via PR #14 (merged) to alter settings option "home" to "PhoneMemoryFolder", because that is what it is called at the GUI, is more self-explanatory and is aligned with extant option names (e.g., in "CamelCase").
But this still leaves the ToDo open to implement a GUI option for setting this in FileCase's settings page.
TL;DR (documenting the current workaround for others)
One can set the default folder to be used as "Phone memory" folder by adding a line to ~/.config/cepiperez/fileboxplus.conf in the [General] section since FileCase 0.2.1, e.g., home=/home/nemo
For releases after PR #14 (i.e., FileCase > 0.4.0) this is, e.g., PhoneMemoryFolder=/home/nemo
To achieve that with FileCase:
One has to enable "Show root filesystem" and "Show hidden files" in FileCase's settings.
Then ascend and descend into the real user's home directory (e.g., /home/nemo) and there into .config/cepiperez
Tap on the file fileboxplus.conf, select "Rename" in the pulley menu and append the extension .txt
Then tap on the file fileboxplus.conf.txt, select "Edit" in the pulley menu and add aforementioned line in the [General] section.
Ultimately tap on the file fileboxplus.conf.txt again, select "Rename" in the pulley menu and remove the extension .txt, so that the file is called fileboxplus.conf again.
What remains, is that it is not nice that one cannot set the default path (but one of multiple, manually user-selectable "default locations") in the GUI: not really a big issue.
P.S.: For a suggestion for a more elegant solution, see issue #67.
Original title:
[Bug] "Hardcoded"
PhoneMemory
-folder makes/home/nemo
practically inaccessible@llewelld I was surprised to see, that I cannot simply select
/home/nemo
as my default folder in FileCase ≥ 0.2.1, but was relieved for a second when I found your commit 7369833 with its headline and description: Remove hardcoded references to/home/nemo
Moves the definition of the home folder into the settings file and defaults to/home/defaultuser
.But then I discovered, that:
/home/defaultuser
, not/home/default
as denoted in the headline of commit 7369833./home/defaultuser
) for a new setting (home
) breaks extant installations of FileCase, which were using/home/nemo
, when updating them to any version ≥ 0.2.1.IMO performing this change in such a manner is a bit "evil", because it will leave many helplessly stranded. It took me more than 15 minutes of research and testing to comprehend how to utilise this correctly.
My criticism ultimately is, that this commit is only a half-step towards implementing a GUI option in FileCase's settings to make this option accessible for an average user. My suggestion is to offer
/home/nemo
and/home/defaultuser
as predefined values, but to allow for inputting any path.Hence I suggested via PR #14 (merged) to alter settings option "home" to "PhoneMemoryFolder", because that is what it is called at the GUI, is more self-explanatory and is aligned with extant option names (e.g., in "CamelCase").
But this still leaves the ToDo open to implement a GUI option for setting this in FileCase's settings page.
TL;DR (documenting the current workaround for others)
~/.config/cepiperez/fileboxplus.conf
in the[General]
section since FileCase 0.2.1, e.g.,home=/home/nemo
For releases after PR #14 (i.e., FileCase > 0.4.0) this is, e.g.,PhoneMemoryFolder=/home/nemo
/home/nemo
) and there into.config/cepiperez
fileboxplus.conf
, select "Rename" in the pulley menu and append the extension.txt
fileboxplus.conf.txt
, select "Edit" in the pulley menu and add aforementioned line in the[General]
section.fileboxplus.conf.txt
again, select "Rename" in the pulley menu and remove the extension.txt
, so that the file is calledfileboxplus.conf
again.