I have a .desktop file to start a python program in a specific conda environment, like this:[Desktop Entry]Version=1.0Name=QutebrowserGenericName=Web BrowserComment=View and edit filesMimeType=text/html;Exec=bash -c source /vol/home/kaipingga/anaconda3/bin/activate qutebrowser; qutebrowserIcon=/vol/home/kaipingga/.config/qutebrowser.svgType=ApplicationTerminal=falseCategories=Network;Utility;X-Python;StartupWMClass=QutebrowserX-Desktop-File-Install-Version=0.20This used to work, but I tweaked my python environment recently.Now, in a terminal the same command$ bash -c source /vol/home/kaipingga/anaconda3/bin/activate qutebrowser; qutebrowserruns the application, but the .desktop file does not. How do I find out due to what error that is?My other .desktop files run fine, I assume something goes wrong with my Python environment, which is quite hackish for the moment (which is the main reason to run this in a dedicated conda environment to start with).Zachary Brady originally suggested (but there are issues) xdg-open might run .desktop files, but it gives me a message box sayingErrorFailed to add a plugin to the panelNo running instance of xfce4-panel was foundboth for this .desktop and for another one that otherwise works. (I'm running plain Ubuntu, no xfce).
How do I debug a .desktop file?
.desktop