Ctrl shortcuts not working in VLC
Solution 1:
This behavior is caused by a notorious appmenu-qt5
bug. The bug report is here. It sets an environment variable for qt applications and this causes many applications menu item to be problematic in Unity. VLC is one of them.
The environment variable is QT_QPA_PLATFORMTHEME
and is set in the file /etc/profile.d/appmenu-qt5.sh
.
Workaround
To workaround this bug, You can unset this variable and start VLC then. From terminal you can use this command to start VLC without this bug.
env QT_QPA_PLATFORMTHEME='' vlc
As a permanent fix, first copy the vlc.desktop
file to ~/.local/share/applicatons/
cp /usr/share/applications/vlc.desktop ~/.local/share/applications/
and then edit the line starting with EXEC
to this line below
Exec=env QT_QPA_PLATFORMTHEME='' /usr/bin/vlc --started-from-file %U
Save the file. Now if you start VLC, the shortcut will work from start.
Update
As reported by Jonathan Y, it seems unsetting UBUNTU_MENUPROXY
environment variable works too! So, you can use un-setting this variable in .desktop
file.
Exec=env UBUNTU_MENUPROXY='' /usr/bin/vlc --started-from-file %U