I haven’t followed the rest of the conversation but I just realized I made a mistake in my reply:
The directory is NOT $HOME/.local/share/applications
and it should be changed to: $HOME/.config/autostart
.
So the path of the .desktop
file is:
$HOME/.config/autostart/xfce4_panel.desktop