Bug 468523 - Customizable initial location for Files View
Summary: Customizable initial location for Files View
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Other
: NOR wishlist
Target Milestone: ---
Assignee: Nate Graham
URL:
Keywords:
: 473178 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-15 07:28 UTC by Céline
Modified: 2023-08-16 19:32 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.12


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Céline 2023-04-15 07:28:31 UTC
I would like to use the Files View. But every time I start Elisa, I have to navigate back into my music directory; since the Files View resets itself to the root directory.

So my idea/request is to fix the File View to a specific directory. Maybe using the first directory defined in Configure Elisa... > Music Folders would be a good start.

(My original feature request can be found here: https://bugs.kde.org/show_bug.cgi?id=468407. 
This request helps to split things up.)
Comment 1 Bug Janitor Service 2023-04-18 17:27:48 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/447
Comment 2 ratijas 2023-04-18 17:29:49 UTC
> So my idea/request is to fix the File View to a specific directory. Maybe using the first directory defined in Configure Elisa... > Music Folders would be a good start.

So, why not presenting a special view with all those directories first?  Like a virtual folder with links.
Comment 3 ebray187 2023-07-11 19:27:58 UTC
I have my music library completely organized into directories which make much more sense for my use case than the album and artist views. Unfortunately I face this bug every time I use Elisa. I eventually managed to make a patch with my little knowledge of QT and C++ to hardcode the default location into the code, but that is far away a proper solution.

What if the default folder follows the System settings -> Applications -> Locations -> Music path?
Comment 4 Michael 2023-07-13 00:46:58 UTC
(In reply to ebray187 from comment #3)
> What if the default folder follows the System settings -> Applications ->
> Locations -> Music path?

Should be fine! I assume that:

xdg-user-dir MUSIC

...will give the proper path to the music folder on any system.
Comment 5 Nate Graham 2023-08-09 19:49:49 UTC
*** Bug 473178 has been marked as a duplicate of this bug. ***
Comment 6 Bug Janitor Service 2023-08-09 23:23:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/476
Comment 7 Joshua Goins 2023-08-16 19:32:56 UTC
Git commit 00e114cfb27df13212724afab1c500de00b37206 by Joshua Goins, on behalf of Nate Graham.
Committed on 16/08/2023 at 21:21.
Pushed by redstrate into branch 'master'.

Allow configuring the initial Files view path

Right now it defaults to / so that the user can access any external
devices they may have plugged in with music on them. However this is a
fairly cumbersome location to always start in as it exposes system
components to the user.

Let's allow the user to customize the initial Files view location so
that they can make it start in exactly the place where they keep their
files.
FIXED-IN: 23.12

M  +3    -0    src/elisa_core.kcfg
M  +16   -0    src/localFileConfiguration/elisaconfigurationdialog.cpp
M  +16   -0    src/localFileConfiguration/elisaconfigurationdialog.h
M  +36   -0    src/qml/SettingsForm.qml
M  +15   -1    src/viewslistdata.cpp

https://invent.kde.org/multimedia/elisa/-/commit/00e114cfb27df13212724afab1c500de00b37206