Some parts of this article have been written with AI. Be aware that AI can make mistakes.
Applies to : Zunie for Linux Zunie for Windows

Zunie opens a different library than the one you chose

Symptoms

You start Zunie and your collection, playlists or history look different from what you expect. In settings > about, the DATABASE line shows a library file other than the one you opened last time with load… or new….

Causes

When it starts, Zunie picks the library file in this order:

  1. The file given with the --db command line option.
  2. The file given in the ZUNIE_DB environment variable.
  3. The last file you opened with load… or new…, if it still exists.
  4. The default library file (~/.local/share/zunie/zunie.db on Linux, %LOCALAPPDATA%\zunie\zunie.db on Windows).

Common causes are:

  • The library file you chose has been moved, renamed or deleted, or it is on a drive that is not connected. Zunie then falls back to the default library file.
  • The ZUNIE_DB environment variable is set in your session or in a launcher script, and points to another file.
  • A shortcut or launcher starts Zunie with the --db option.

Solutions

  1. Check the path shown on the DATABASE line in settings > about.

  2. If your library file is on a removable or network drive, connect the drive, then restart Zunie.

  3. If you moved or renamed the file, click load… and select it at its new location. Zunie remembers it for the next starts.

  4. If you use a terminal, check whether ZUNIE_DB is set:

    echo $ZUNIE_DB
    

    If it prints a path, remove the variable from your shell configuration or launcher script, or run unset ZUNIE_DB before starting Zunie.

  5. Check that your shortcut or launcher does not add the --db option.

Note

Falling back to the default library never deletes or changes the file you chose, and Zunie does not forget it. As soon as the file is available again at the same location, Zunie opens it at the next start.

See also How to use another library file.