Avidemux Forum

Avidemux => Unix-Like (Linux/Bsd/...) => Topic started by: Strangiato on December 18, 2017, 12:23:33 PM

Title: Avidemux icon and its label are wrong in alt+tab menu and Gnome dash
Post by: Strangiato on December 18, 2017, 12:23:33 PM
Hi
I installed avidemux 2.7.0 on Arch Linux running Gnome 3.26.2.
Gnome dash (bar on left) and alt+tab menu show a wrong and pixelated/blury avidemux icon and its label is "avidemux3_qt5" instead of "avidemux (Qt)".
See my screenshots please.

http://imgbox.com/g/nSh8kEiHI9
Title: Re: Avidemux icon and its label are wrong in alt+tab menu and Gnome dash
Post by: eumagga0x2a on December 18, 2017, 01:07:09 PM
Write your own .desktop file with the "Icon = " entry pointing to the icon of your choice (yes, the icon provided by Avidemux is unfit for modern displays).

Edit: avidemux3_qt5 is the correct name of Avidemux executable. You might want to use a wrapper script nevertheless to avoid the debug output filling the journal.
Title: Re: Avidemux icon and its label are wrong in alt+tab menu and Gnome dash
Post by: Strangiato on December 18, 2017, 01:31:04 PM
change icon entry in .desktop file does not solve the problem.
Furthermore this issue should be solved in upstream.
Title: Re: Avidemux icon and its label are wrong in alt+tab menu and Gnome dash
Post by: eumagga0x2a on December 18, 2017, 06:25:08 PM
You should likely set StartupWMClass property too. I use

[Desktop Entry]
Name=Avidemux Video Editor (Qt5)
Comment=Graphical video editing tool - Qt5 interface
Icon=org.gnome.Totem
Exec=/usr/local/bin/avidemux
MimeType=video/mpeg;video/quicktime;video/x-msvideo;video/x-anim;audio/x-mp3;audio/x-mp2;
Terminal=false
Type=Application
Categories=AudioVideo;AudioVideoEditing;
X-Desktop-File-Install-Version=0.23
StartupWMClass=avidemux3_qt5


as .desktop file while /usr/local/bin/avidemux contains just

#!/bin/bash
/usr/local/bin/avidemux3_qt5 > /dev/null 2>&1
exit 0


Works fine at least in gnome-shell 3.24 (didn't make the leap to 3.26 yet), but should work in 3.26 as well. If I need the debug output, I launch avidemux3_qt5 in terminal directly.
Title: Re: Avidemux icon and its label are wrong in alt+tab menu and Gnome dash
Post by: Strangiato on December 18, 2017, 06:46:18 PM
ok, I added StartupWMClass=avidemux3_qt5 to my .desktop file,
avidemux icon is correct now. Thanks.
This bug should be fixed in upstream,
where is avidemux bug tracker?
Title: Re: Avidemux icon and its label are wrong in alt+tab menu and Gnome dash
Post by: eumagga0x2a on December 18, 2017, 06:59:29 PM
This forum is the best way to report bugs. Contributing code and artwork is the best way to fix them.
Title: Re: Avidemux icon and its label are wrong in alt+tab menu and Gnome dash
Post by: Strangiato on December 18, 2017, 07:04:50 PM
Quote from: eumagga0x2a on December 18, 2017, 06:59:29 PM
Contributing code and artwork is the best way to fix them.
A developer or a designer can do it, not me.
I'm an end user.
Title: Re: Avidemux icon and its label are wrong in alt+tab menu and Gnome dash
Post by: eumagga0x2a on December 18, 2017, 07:16:38 PM
Quote from: Strangiato on December 18, 2017, 07:04:50 PM
I'm an end user.

Me too. Turned into a sort of a developer by the need to fix bugs in Avidemux which bothered me.
Title: Re: Avidemux icon and its label are wrong in alt+tab menu and Gnome dash
Post by: eumagga0x2a on December 18, 2017, 07:44:48 PM
By the way, the icon used for the Avidemux window is "avidemux_icon_small.png" in avidemux/qt4/ADM_userInterfaces/ADM_gui/pics (https://github.com/mean00/avidemux2/tree/master/avidemux/qt4/ADM_userInterfaces/ADM_gui/pics).