snap will auto update the app
snap install clioncd ~/.CLion # tab
gedit config/options/project.default.xml
replace
<component name="CMakeSettings">
<configurations>
<configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" />
</configurations>
</component>with
<component name="CMakeSettings">
<configurations>
<configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" GENERATION_OPTIONS="-DCATKIN_DEVEL_PREFIX:PATH=$PROJECT_DIR$/../../devel" />
</configurations>
</component>Note that if you open your ros package before this change, you need to delete .idea to make it in effect
cp /var/lib/snapd/desktop/applications/clion_clion.desktop ~/.local/share/applications/clion_clion.desktopadd bash -i -c