Author Topic: file type associations hell  (Read 2879 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5273
file type associations hell
« 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 ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13152
    • Travis build status
Re: file type associations hell
« Reply #1 on: January 18, 2021, 08:02:47 pm »
You're at the mercy of the .desktop files. :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5273
Re: file type associations hell
« Reply #2 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13152
    • Travis build status
Re: file type associations hell
« Reply #3 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. :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5273
Re: file type associations hell
« Reply #4 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 ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13152
    • Travis build status
Re: file type associations hell
« Reply #5 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]