How do I add a new application to the context menu?

Hi,

I have installed VLC via chroot:

pacman -Sy vlc

Fix to launch VLC as root:

sed -i 's/geteuid/getppid/g' /usr/bin/vlc

which I can launch from the terminal: vlc

However, VLC doesn’t appear anywhere in the context menu.

How can I fix this?

To create an application icon that appears in XFCE menus, you must create a .desktop file containing the application’s name, executable path, and icon location. These files should be placed in ~/.local/share/applications/ for your user only or /usr/share/applications/ for all users.