Skip to content

[REQUEST] Load themes from XDG_DATA_DIRS #1617

@sagikazarmark

Description

@sagikazarmark

Before opening a feature request

  • I checked the next branch to see if the feature has already been implemented
  • I searched existing reports to see if it is already requested.

What is the user problem or growth opportunity you want to see solved?

When installing themes as packages (using OS package manager), packages might not always end up in /usr (eg. in case of NixOS). As a result, Rofi won't find themes installed as packages.

By adding XDG_DATA_DIRS to the list of search paths (install dir, XDG_DATA_DIRS, XDG_DATA_HOME, XDG_CONFIG_HOME), Rofi could find themes in other (standard) locations.

How do you know that this problem exists today? Why is this important?

Tried to install themes using Nix and they are not discovered. Also checked the relevant code.

Who will benefit from it?

NixOS users will certainly will benefit, but anyone else who installs software in non-standard locations would also benefit.

Rofi version (rofi -v)

1.7.3

Configuration

N/A

Additional information

As far as I understood, it should be added above this line:

char *theme_path = g_build_filename(THEME_DIR, filename, NULL);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions