Add top_left_arrow cursor symlinks
ClosedPublic

Authored by elvisangelaccio on Nov 22 2016, 3:36 PM.

Details

Summary

Some mono apps (e.g. Keepass) look for a top_left_arrow cursor file instead
of the usual left_ptr cursor. Breeze doesn't ship such file, which
means that those mono apps have an ugly mouse cursor on Plasma (see
http://i.imgur.com/D4isxCn.png).

This patch just adds a top_left_arrow -> left_tr symlink (both for Breeze and
Breeze_Snow). The adwaita theme also ships this very same symlink.

Test Plan

ln -s /usr/share/icons/breeze_cursors/cursors/left_ptr ~/.icons/breeze_cursor/cursors/top_left_arrow

With such symlink, mono apps use the breeze cursor as expected.

Diff Detail

Repository
R31 Breeze
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
elvisangelaccio retitled this revision from to Add top_left_arrow cursor symlinks.
elvisangelaccio updated this object.
elvisangelaccio edited the test plan for this revision. (Show Details)
elvisangelaccio added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptNov 22 2016, 3:36 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
elvisangelaccio edited the test plan for this revision. (Show Details)Nov 22 2016, 3:37 PM
mart accepted this revision.Nov 23 2016, 10:48 AM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Nov 23 2016, 10:48 AM
This revision was automatically updated to reflect the committed changes.

Are there other cursors that Mono might use? In Unity's 3D editor I get the same ugly (but mirrored) cursor. I tried symlinking top_right_arrow but that didn't help.

Are there other cursors that Mono might use? In Unity's 3D editor I get the same ugly (but mirrored) cursor. I tried symlinking top_right_arrow but that didn't help.

Your best bet is strace'ing the executable. I'll ping you on IRC

Are there other cursors that Mono might use? In Unity's 3D editor I get the same ugly (but mirrored) cursor. I tried symlinking top_right_arrow but that didn't help.

Your best bet is strace'ing the executable. I'll ping you on IRC

In particular, what I did with the test app was:

strace hello-winform.exe 2>&1 | grep cursors

then I looked for files that the app couldn't open, in my case I had:

open("/usr/share/icons/breeze_cursors/cursors/top_left_arrow", O_RDONLY) = -1 ENOENT (No such file or directory)