How to use another library file
Zunie normally works with one library file (see Where Zunie stores your library). You can keep several library files and switch between them, for example to keep a separate collection, to try Zunie on a copy of your library, or to start again from an empty library without losing the current one.
Open an existing library file
- Click settings in the top navigation bar.
- In the list of categories on the left, click about, then find the DATABASE line.
- Click load….
- Select a Zunie library file, then confirm.
Zunie checks the file, then restarts on it. If the file cannot be used, a message appears under the DATABASE line instead (see Zunie refuses to open a library file).
Create a new, empty library file
- Click settings in the top navigation bar.
- In the list of categories on the left, click about, then find the DATABASE line.
- Click new….
- Choose a folder and a file name (Zunie suggests
zunie-2.db), then confirm.
Zunie creates the new library with your current language and theme, then restarts on it. The new library has no folders yet: add your music, video and picture folders in settings > folders.
Note
new… never overwrites an existing file. If you pick the name of an existing Zunie library, Zunie simply opens it. If the file exists but is not a Zunie library, Zunie asks you to choose another name.
Which library opens the next time you start Zunie
Zunie remembers the library you opened with load… or new… and uses it every time you start Zunie.
To go back to your usual library, click load… and select the default library file (~/.local/share/zunie/zunie.db on Linux, %LOCALAPPDATA%\zunie\zunie.db on Windows).
If the remembered file has been moved, renamed or deleted, Zunie starts on the default library file instead.
Start Zunie once with another library (advanced)
You can start Zunie on another library file for a single session, without changing the library Zunie remembers.
Environment variable
Set the ZUNIE_DB environment variable to the path of the library file when you start Zunie. On Linux, from a terminal:
ZUNIE_DB=~/Music/test-library.db zunie
The variable only applies to that launch. The next time you start Zunie normally, it opens the library it remembers.
Command line option
Start Zunie with the --db option followed by the path of the library file:
zunie --db ~/Music/test-library.db
When several choices are present, Zunie uses the first one available in this order:
- The
--dbcommand line option. - The
ZUNIE_DBenvironment variable. - The library you last opened with load… or new…, if the file still exists.
- The default library file.
Tip
If the file given with --db or ZUNIE_DB does not exist yet, Zunie creates a new, empty library at that location.