Skip to content

Commit

Permalink
x11rb: Update default cursor search path
Browse files Browse the repository at this point in the history
In [1], xcb-util-cursor's default search path was changed. This change
was done to bring it in line with libXcursor's behaviour. In that
library, in [2], ~/.local/share/icons was added to the default search
path.

Additionally, /usr/X11R6/lib/X11/icons was never part of libXcursor's
search path. It only searched there if you set --prefix or --datadir
suitably, but in that case /usr/share/icons would disappear from the
search path. This path was thus removed from xcb-util-cursor in [1].

In this commit, I bring x11rb in sync with xcb-util-cursor again.

[1]: https://gitlab.freedesktop.org/xorg/lib/libxcb-cursor/-/commit/d28a3227eb9e4bdeeb4dd93017c298808bbe62ee
[2]: https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/commit/2263c196cb0d

Signed-off-by: Uli Schlachter <[email protected]>
  • Loading branch information
psychon committed Jun 23, 2024
1 parent c55337f commit 68792e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x11rb/src/cursor/find_cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ pub(crate) fn find_cursor(theme: &str, name: &str) -> Result<Cursor<File>, Error
None => return Err(Error::NoHomeDir),
};
let cursor_path = var("XCURSOR_PATH").unwrap_or_else(|_| {
"~/.icons:/usr/share/icons:/usr/share/pixmaps:/usr/X11R6/lib/X11/icons".into()
"~/.local/share/icons:~/.icons:/usr/share/icons:/usr/share/pixmaps".into()
});
let open_cursor = |file: &Path| File::open(file);
find_cursor_impl(
Expand Down

0 comments on commit 68792e6

Please sign in to comment.