Code::Blocks Forums

User forums => Help => Topic started by: killerbot on January 18, 2021, 05:38:39 pm

Title: file type associations hell
Post by: killerbot on January 18, 2021, 05:38:39 pm
och boy, on latest OpenSuse Leap 15.2, kde

for some reason each time dolphin (or for that matter settings file type associations) does not register it to the system, meaning I am unable to get :
*.cbp
*.workspace
registered.
Fighting with it for some time now, anyone out here with some suggestions or solutions ?
Title: Re: file type associations hell
Post by: oBFusCATed on January 18, 2021, 08:02:47 pm
You're at the mercy of the .desktop files. :(
Title: Re: file type associations hell
Post by: killerbot on January 25, 2021, 04:44:37 pm
solved it, so the sudo make install, must have placed a codeblocks.xml in : /usr/local/share/mime/packages/

so far so good, but the process of installation did not issue an update request for the mime database, so all what needed to be done was :

Code
sudo update-mime-database /usr/local/share/mime
Title: Re: file type associations hell
Post by: oBFusCATed on January 25, 2021, 07:56:58 pm
Moral of the story: Just never use "sudo make install". Learn how to make packages it is way more reliable. :)
Title: Re: file type associations hell
Post by: killerbot on January 25, 2021, 10:48:20 pm
creating a package when building the software locally for the system, isn't that a bit of a detour ?
Title: Re: file type associations hell
Post by: oBFusCATed on January 26, 2021, 01:08:03 am
Only the first time. After that it is a win, because you're not worried about missing/messing steps and then trying to debug what went wrong.