Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use home folder of current user #46

Merged
merged 1 commit into from Nov 5, 2023

Conversation

simonschmeisser
Copy link
Contributor

closes #15

This should return the current users home directory instead of hard coding it.

https://doc.qt.io/qt-5/qstandardpaths.html

`QDir::homePath would be another alternative

(not actually tested)

@Olf0
Copy link
Collaborator

Olf0 commented Nov 5, 2023

@simonschmeisser, thank you very much.

This should return the current users home directory instead of hard coding it.

Originally I thought it would be nice, if users can set the Phone memory path to anything they like: which is already the case, but not yet via a UI dialogue.

But yesterday, when reading the criticism at FSO, I already considered to automatically set it to the user's homedir. As you have come to this conclusion independently and provided a PR implementing this, this will be the way to go. Probably this is the best solution, because one line of thinking (which should not be followed too strictly) is, that a configuration option is just a programmers easy way out, when unsure which default value to set.

P.S.: I will try to remember to make another RC release next weekend, because I am away for the upcoming week. If I forget or miss to carry out this plan, feel free to remind me.

Copy link
Collaborator

@Olf0 Olf0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Olf0 Olf0 merged commit 4ac3758 into sailfishos-applications:devel Nov 5, 2023
1 check passed
@simonschmeisser
Copy link
Contributor Author

Maybe the best solution would be to use the home dir as default and let users change it if desired. I say maybe because I haven't actually used this app just thought this should be easy to fix and went for it

Olf0 added a commit that referenced this pull request Nov 17, 2023
* [build-on-tags.yml] Adapt job name to commit b69fad8

* Update README.md with License link

* Use current user's homedir as `Phone memory` path (#46)
  This should return the current user's home directory instead using a hard-coded default from the config file.
  Drawback: The `PhoneMemory` path is now fixed to the homedir.
  (not actually tested)

* Updates for file translations/filecase.ts in sv (#47)

* Translate translations/filecase.ts in sv
  100% translated source file: 'translations/filecase.ts'
on 'sv'.
  Co-authored-by: @eson57 via transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>

* [config.cpp] Document last change and put original line in comment

* [filecase.qml] Add documenting comment

* [filecase.qml] Fix typo in comment

* Towards v0.4.3 (#50)

* [ilecase.changes] Add entries for v0.4.2

* [filecase.spec] Pre-release version increase

* [filecase.changes] Fix typo

* [filecase.spec] Fix typo in comment

---------

Co-authored-by: Simon Schmeisser <s.schmeisser@gmx.net>
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Suggestion] Make PhoneMemory-folder user-configurable
2 participants