You are not logged in.

#1 2015-12-22 16:54:18

tridus
Member
Registered: 2014-06-26
Posts: 24

No icon for MPlayer

MPlayer appears with a generic icon in my panel even when there's a specific icon for it in the Faenza icon theme, which I'm using. My WM is Openbox.

Offline

#2 2015-12-22 17:22:25

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: No icon for MPlayer

that depends on which panel you are using.
You need to either fix/create the .desktop file for mplayer or use xseticon (from AUR) to set the X11 window icon.

Offline

#3 2015-12-24 16:26:30

tridus
Member
Registered: 2014-06-26
Posts: 24

Re: No icon for MPlayer

A desktop file already exists and it is fine, and there's already an icon for it in the Faenza icon theme.

Offline

#4 2015-12-24 17:07:45

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: No icon for MPlayer

Openbox doesn't pay attention to .desktop files, it'll take the icon from the application itself. And well, mplayer itself doesn't have an icon. So your icon theme and .desktop files won't do anything to openbox. Your only option is, as ooo mentioned, xseticon. Note than xseticon only influences the current session, so you need to start it every time you launch X. Or you switch to mpv - aside from having a build-in icon, it has quite a few goodies compared to mplayer.

Offline

#5 2015-12-24 18:07:03

tridus
Member
Registered: 2014-06-26
Posts: 24

Re: No icon for MPlayer

Gusar wrote:

So your icon theme and .desktop files won't do anything to openbox.

That doesn't seem to be the case. If I change the current icon theme I can see other icons for some applications.

I won't install xseticon and start it every time just to change an icon.

I already have mpv installed, but I'm quite fond of MPlayer.

Offline

#6 2015-12-24 18:20:32

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: No icon for MPlayer

tridus wrote:

If I change the current icon theme I can see other icons for some applications.

Those applications still have some icon handling inside them. Something mplayer doesn't have.

tridus wrote:

I already have mpv installed, but I'm quite fond of MPlayer.

They're not that different. Well internally they are, but on the surface mpv can be used very much like mplayer. I didn't have issues switching. Ok, I had a solid incentive - mpv's top-notch vaapi support - but still.

Offline

#7 2015-12-27 00:45:28

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: No icon for MPlayer

Which panel you're using again? Some panels (probably anything gtk or qt) should find the icon via desktop files, while others only display the _NET_WM_ICON.

Unfortunately xseticon is the only way to change the x11 icon. Also, it's not enough to start it once from .xinitrc. It has to be used each time after mplayer is started to set the correct icon, i.e. you create script which starts mplayer and sets the icon with xseticon after few seconds of sleep.

Offline

#8 2015-12-28 05:40:10

tridus
Member
Registered: 2014-06-26
Posts: 24

Re: No icon for MPlayer

I'm using tint2. But such an elaborate process just to change one icon is not my cup of tea. Better leave it as it is.

Offline

Board footer

Powered by FluxBB