You are not logged in.

#1 2015-03-13 23:05:03

el.Quero
Member
Registered: 2014-11-15
Posts: 19

Libreoffice Writer replaces Gedit's default filetype associations

Hi guys, I'm trying to restore default filetypes associations without success. After I installed libreoffice I noticed that anything I was usual to open by gedit (ie .c source files) now is opened by Libreoffice Writer.
I checked

  • /usr/share/applications/defaults.list

  • /etc/gnome/defaults.list(I've tryed to install the gnome-defaults-list AUR package)

  • .local/share/applications/mimeapps.list

and there isn't any "text/***" associated with Writer!
So how can I get back Gedit defaults?

I'm using, as you can see, Gnome 3.14.

Thank you wink

Last edited by el.Quero (2015-03-14 09:20:54)

Offline

#2 2015-03-13 23:18:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Libreoffice Writer replaces Gedit's default filetype associations

https://wiki.archlinux.org/index.php/GN … plications

https://wiki.archlinux.org/index.php/GN … n_defaults

EDIT:

el.Quero wrote:

... /etc/gnome/defaults.list

Have you installed that from the AUR, or are you still using Antergos where this is installed by default?

Last edited by Trilby (2015-03-13 23:21:36)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2015-03-14 09:41:31

el.Quero
Member
Registered: 2014-11-15
Posts: 19

Re: Libreoffice Writer replaces Gedit's default filetype associations

Hi @Trilby! Thank you for your support!
First of all I must apologize for my noob-like first post: now I edited it and should be clearer and more comprehensible.
BTW I had already looked at the wiki pages you recommended to me, but they didn't help me. The only thing I didn't tried is issuing the xdg-mime command, but i think that it modifies the .local/share/applications/mimeapps.list, that I've already checked. And maybe isn't the best way for resolving this issue, because I should do it for every file I would like to open with Gedit! yikes
I've also removed the gnome-defaults-list. I think that isn't usefull to me.

Offline

#4 2015-03-14 13:44:35

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: Libreoffice Writer replaces Gedit's default filetype associations

Try

xdg-mime default gedit.desktop $(grep '^text/x-*' /usr/share/mime/types)

Might not work as freedesktop once again changed the mimeapps path. mad (it's in ~/.config/mimeapps.list now)

BTW it's not because you don't see an entry in ~/<whatever>/mimeapps.list that it's not associated. You only see what you (or some random program) has changed from the system defaults.

Last edited by Alad (2015-03-14 13:52:20)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2015-03-14 18:11:16

el.Quero
Member
Registered: 2014-11-15
Posts: 19

Re: Libreoffice Writer replaces Gedit's default filetype associations

Alad wrote:

Try
Might not work as freedesktop once again changed the mimeapps path. mad (it's in ~/.config/mimeapps.list now)

Infact it doesn't work.

Alad wrote:

BTW it's not because you don't see an entry in ~/<whatever>/mimeapps.list that it's not associated. You only see what you (or some random program) has changed from the system defaults.

Yes, you are right, but in /usr/share/applications/defaults.list is Gedit "the chosen one"!

text/x-c++hdr=gedit.desktop
text/x-c++src=gedit.desktop
text/x-csrc=gedit.desktop
text/x-chdr=gedit.desktop
text/x-dtd=gedit.desktop
text/x-java=gedit.desktop
text/x-javascript=gedit.desktop
text/x-makefile=gedit.desktop
text/x-moc=gedit.desktop
text/x-pascal=gedit.desktop
text/x-patch=gedit.desktop
text/x-perl=gedit.destkop
text/x-php=gedit.destkop
text/x-python=gedit.destkop
text/x-sql=gedit.desktop
text/x-tcl=gedit.desktop
text/x-tex=gedit.desktop
text/xml=gedit.desktop

It seems like that is overwritten by some other file, that I've not already checked!

Offline

#6 2015-03-14 18:14:44

el.Quero
Member
Registered: 2014-11-15
Posts: 19

Re: Libreoffice Writer replaces Gedit's default filetype associations

I found the bug!
There is no more the gedit.desktop file, now is org.gnome.gedit.desktop. It seems like a bug, defaults.list should be updated... Is the same for you guys?

Last edited by el.Quero (2015-03-14 18:15:14)

Offline

Board footer

Powered by FluxBB