Skip to content

Default File View path to QStandard music or root

Reason for the change

This should provide a better default path value for the File View.

The current default is set to the root folder. This merge makes the default File View directory the one set by the user in System settings -> Applications -> Locations -> Music path. If the path is no settled in the System settings or the path is not a valid one, then it will fallback to the root folder.

Test plan

  1. Check that InitialFilesViewPath is not set in the config file (~/.config/elisarc)
  2. Change the Music path setting in the system settings (System settings -> Applications -> Locations -> Music path)
  3. Run Elisa and open the File View. It should follow the system setting.
  4. Change the setting in the system settings to a non-existing path or leave empty
  5. Run Elisa, open the File View. Elisa should fallback to root "/"
  6. Set the "initial location for Files view" path in the config.
  7. Run Elisa, open the File View. Elisa should open the path from the setting.

Merge request reports

Loading