selwynorren
Posts: 63
Joined: Sat Aug 06, 2016 1:30 am

inode associated with Git-Cola

Thu Jan 25, 2018 12:11 pm

SO I have this weird thing happening.. I have installed Got-Cola and many other additional software on my system and as true to Solus everything works flawlessly. However at some point the inode default app changed from nautilus to got-cola.

This has absolutely no effect on me with my day to day operations, however, after I have downloaded a torrent using transmission and I select open in folder, it opens git-cola.

I then edit:

Code: Select all

sudo gedit /usr/share/applications/mimeinfo.cache
I delete the git-cola reference in the inode line and it all works just fine. As soon as I reboot, run an update or install an app, the inode default app gets changed back to git-cola... again.

How can I change this on a permanent basis?

sunnyflunk
Development Team
Posts: 2969
Joined: Sun Mar 13, 2016 11:35 pm

Re: inode associated with Git-Cola

Mon Jan 29, 2018 3:34 am

selwynorren wrote:
Thu Jan 25, 2018 12:11 pm
SO I have this weird thing happening.. I have installed Got-Cola and many other additional software on my system and as true to Solus everything works flawlessly. However at some point the inode default app changed from nautilus to got-cola.

This has absolutely no effect on me with my day to day operations, however, after I have downloaded a torrent using transmission and I select open in folder, it opens git-cola.

I then edit:

Code: Select all

sudo gedit /usr/share/applications/mimeinfo.cache
I delete the git-cola reference in the inode line and it all works just fine. As soon as I reboot, run an update or install an app, the inode default app gets changed back to git-cola... again.

How can I change this on a permanent basis?
That would be because they include a .desktop file which provides the association: It would

Code: Select all

[Desktop Entry]
Name=Git Cola
TryExec=git-cola
Exec=git-cola --repo %f
Icon=git-cola
NoDisplay=true
Terminal=false
StartupNotify=true
Type=Application
Categories=Development;RevisionControl;
MimeType=inode/directory;

It either needs to be removed at a package level, or set for the user via xdg-mime. I don't know how to do that off the top of my head ,so would be something to look up.

selwynorren
Posts: 63
Joined: Sat Aug 06, 2016 1:30 am

Re: inode associated with Git-Cola

Mon Jan 29, 2018 6:31 am

Thanks SunnyFlunk,

I ran the following

Code: Select all

sudo gedit /usr/share/applications/git-cola.desktop
but never saw any reference to the inode entry there. Which file should I be looking at?

sunnyflunk
Development Team
Posts: 2969
Joined: Sun Mar 13, 2016 11:35 pm

Re: inode associated with Git-Cola

Fri Feb 02, 2018 4:29 am

selwynorren wrote:
Mon Jan 29, 2018 6:31 am
Thanks SunnyFlunk,

I ran the following

Code: Select all

sudo gedit /usr/share/applications/git-cola.desktop
but never saw any reference to the inode entry there. Which file should I be looking at?

Code: Select all

sudo gedit /usr/share/applications/git-cola-folder-handler.desktop

selwynorren
Posts: 63
Joined: Sat Aug 06, 2016 1:30 am

Re: inode associated with Git-Cola

Fri Feb 02, 2018 11:22 am

Ahhh Fantastic, thanks

sunnyflunk
Development Team
Posts: 2969
Joined: Sun Mar 13, 2016 11:35 pm

Re: inode associated with Git-Cola

Fri Feb 09, 2018 10:17 am

selwynorren wrote:
Fri Feb 02, 2018 11:22 am
Ahhh Fantastic, thanks
For a longer term fix, copy the file to ~/.local/share/applications and edit it there (the version in /usr/share will be overwritten whenever the package is installed/updated

selwynorren
Posts: 63
Joined: Sat Aug 06, 2016 1:30 am

Re: inode associated with Git-Cola

Fri Feb 09, 2018 10:28 am

Now that's a handy tip, thanks so much!!

Return to “Tutorials”