Update custom defaults.list

Bug #898770 reported by Sergey "Shnatsel" Davidoff
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
elementary OS
Fix Released
High
Cody Garver
0.2-luna
Fix Released
High
elementary OS team
0.3-freya
Fix Released
Medium
Cody Garver

Bug Description

We should ship a custom defaults.list file so the file associations don't change with every new installed application (like it happens in Jupiter).

Tags: defaults
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

In Oneiric, /usr/share/applications/defaults.list is a symlink to /usr/share/gnome/defaults.list; both files are shipped by desktop-file-utils package.

Changed in elementaryos:
importance: Undecided → Medium
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

XDG_DATA_DIRS controls the defaults.list to use; /etc/X11/Xsession.d/55gnome-session_gnomerc is the file that prepends /usr/share/gnome to its value. We probably should do the same.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

/etc/X11/Xsession.d/60-X11-common-xdg_path prepends new XDG dirs depending on the chosen section. If our session is called "pantheon", we can place customized things from /usr/share/gnome, as well as /usr/local/share/ and even /usr/share/ there.

tags: added: defaults
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

"there" means to /usr/share/pantheon, and that will be picked up in our session automagically.

Revision history for this message
Mario Guerriero (mefrio-g) wrote :

Sergey we can easily create our own defaults.list, put it in /usr/share/pantheon and then make a symlink with /usr/share/applications/defaults.list

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Mario, there's no need to symlink anything. Thanks to XDG_DATA_DIRS environment variable, contents of /etc/xdg/xdg-pantheon/ already override anything in /usr/share, so we can simply put the file there. That's how GNOME does it, too.

Revision history for this message
Mario Guerriero (mefrio-g) wrote :

So we only need to write a default.list and put it in /etc/xdg/xdg-pantheon?

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

"defaults.list", not "default.list". Yes.

Revision history for this message
Cody Garver (codygarver) wrote :

I have attached a branch that contains a defaults.list to be further modified.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

I'm still unsure about two items: Shotwell which doesn't declare some mimes that it actually supports and rhythmbox-device.desktop to which we probably have no alternative so far; what's the status of Noise CLI interface btw?

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

sorry, support of CLI parameters

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Man, Ubuntu is a mess. They have both rhythmbox-device.desktop and banshee-audiocd.desktop in defaults.list :/

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Sorry for misguiding you guys, /usr/share/pantheon is the correct location for session-specific overrides after all, not /etc/xdg/pantheon

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

I've moved the file from a separate branch to pantheon-xsession-settings because it's easiest to apply such things session-specifically

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Mostly done, preliminary version deployed. We're waiting for some elementary apps to finalize CLI interfaces. Retargeting to beta2.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

I'll have to add/update "the text/calendar" entry as soon as bug 1080471 and bug 1091482 are fixed

Cody Garver (codygarver)
summary: - Ship custom defaults.list
+ Update custom defaults.list
Revision history for this message
Cody Garver (codygarver) wrote :

For Freya I did the following:

* Drop associations for apps we don't ship
* Associate text/xml with Scratch as seen in the Applications plug's Defaults code
* Replace Totem associations with Audience

Could not be bothered to inspect upstream's *buntu's various defaults, ours are complete enough for me.

Cody Garver (codygarver)
no longer affects: elementaryos/0.4-loki
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.