Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464826 - new eselect module for managing system default X cursors theme
Summary: new eselect module for managing system default X cursors theme
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2013-04-06 10:04 UTC by Fab
Modified: 2020-12-09 20:42 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xcursors eselect module (xcursors.eselect,2.27 KB, text/plain)
2013-04-06 10:05 UTC, Fab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fab 2013-04-06 10:04:06 UTC
Attached below.

> $ eselect xcursors list
> Available X cursors themes :
>   [1]   Vanilla-DMZ *
>   [2]   handhelds
>   [3]   redglass
>   [4]   whiteglass

Bascially, it creates the /usr/share/cursors/xorg-x11/default directory wherin the created index.theme inherits a installed theme :

> $ cat /usr/share/cursors/xorg-x11/default/index.theme 
> Inherits=Vanilla-DMZ

Reproducible: Always
Comment 1 Fab 2013-04-06 10:05:13 UTC
Created attachment 344620 [details]
xcursors eselect module

MAINTAINER variable should be checked at the top of the file.
Comment 2 Ulrich Müller gentoo-dev 2013-04-06 11:31:40 UTC
(In reply to comment #1)
> Created attachment 344620 [details]
> xcursors eselect module

> do_del() {
> 	[...]
> }

If possible, action names should be standardised. AFAICS, we don't yet have a "del" action in any module. Some modules have an "unset" action though. Would that fit?

@desktop-misc, @x11: I guess this module falls in your field.
Comment 3 Dimitrios Semitsoglou-Tsiapos 2015-04-05 11:03:06 UTC
Taking a look at Bug #543902, one can see that gtk+:3 depends on the Adwaita theme, which then proceeds to symlink itself. It appears that this is simply not going to change and a default cursor will be forced to everyone.

Regarding this bug: Adwaita uses a symlink, while this eselect script creates a `defaults/index.theme` file. I wonder which method is more proper, so that it can be used globally.
Comment 4 Piotr Karbowski (RETIRED) gentoo-dev 2020-11-29 18:08:45 UTC
Nowadays it's really up to DE to define what theme is to be used, it can also be changed on per-user without DE in .Xresources/.Xdefault with:

    Xcursor.theme: Adwaita
    Xcursor.size: 16

so it think there's little value for it really.
Comment 5 Nuno Silva 2020-12-09 17:04:14 UTC
Out of curiosity, do you know if these X resources can be used to select the default/built-in X11 cursor theme? (For context, see bug 543488 comment 20 and bug 543902.)
Comment 6 Fab 2020-12-09 20:42:54 UTC
(In reply to Piotr Karbowski from comment #4)
> Nowadays it's really up to DE to define what theme is to be used, it can
> also be changed on per-user without DE in .Xresources/.Xdefault with:
> 
>     Xcursor.theme: Adwaita
>     Xcursor.size: 16
> 
> so it think there's little value for it really.

That's really funny, because :
 
 - DE or per-user cursor theme has nothing to do with default cursors theme defined *globally* on the system *by the superuser* (one command to define default theme for all users)

 - In most of cursors themes ebuilds available in current portage tree we can read :

>	einfo "To globally use this set of mouse cursors edit the file:"
>	einfo "   ${EROOT}/usr/share/cursors/xorg-x11/default/index.theme"
>	einfo "and change the line:"
>	einfo "    Inherits=[current setting]"
>	einfo "to"
>	einfo "    Inherits=Blue"

This is exactly what this module do.