defaults are not changed

Bug #1081413 reported by Clearflower
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Defaults Plug
Fix Released
High
Akshay Shekher

Bug Description

1. Install another music player (I did audacious and exaile)
2. Open Switchboard -> Defaults, and change the default music player
3. Open a music file (I used a .pls stream)

Result: The music file only opens with the last default music player, which was noise.

Note that noise isn't the problem - when I removed that app, switching between exaile and audacious gave the same results, and I even had to _right click > open with > other application_ to search for the other music player.

ProblemType: Bug
DistroRelease: elementary OS 0.2
Package: elementary-desktop 1.284-0~355~precise1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.2.0-33.52-generic-pae 3.2.31
Uname: Linux 3.2.0-33-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu15+elementary3~precise1
Architecture: i386
CrashDB: elementary_meta
Date: Tue Nov 20 19:15:58 2012
InstallationMedia: elementary OS 0.2 "Luna" - Beta 1 i386 (20121114)
MarkForUpload: True
SourcePackage: elementary-meta
SuspiciousXErrors:

ThirdParty: True
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Clearflower (flowc111) wrote :
Cody Garver (codygarver)
affects: elementaryos → switchboard-plug-default-applications
Cody Garver (codygarver)
Changed in switchboard-plug-default-applications:
milestone: none → luna-beta2
importance: Undecided → Critical
importance: Critical → Medium
Revision history for this message
Damien (youpla-b) wrote :

Noticed it with the video player. I suspect all 8 lists are affected.

Revision history for this message
Danielle Foré (danrabbit) wrote :

I'm bumping this to "high" since it seems the functionality is completely broken. I can confirm that changing the default image viewer from "Shotwell" to "GIMP" does nothing.

summary: - Switchboard "Defaults" doesn't switch music players when two or more are
- installed
+ defaults are not changed
Changed in switchboard-plug-default-applications:
importance: Medium → High
status: New → Confirmed
Revision history for this message
Chris Triantafillis (christriant) wrote :

I don't know why its not working but i'll try to fix it.
I'll find another way to do it

Changed in switchboard-plug-default-applications:
assignee: nobody → Chris Triantafillis (christriant)
Revision history for this message
David Gomes (davidgomes) wrote :

This is indeed a very broken issue. xdg-open handles this kind of things, right?

Revision history for this message
Chris Triantafillis (christriant) wrote :

I don't know...We must ask Shnatsel.

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

IDK, works for me, as far as switching web browsers goes.

The system is reasonably complex, and xdg-open is merely a client of it (and a rather poor one too). The immediate effect of the plug should be observable as new entries in ~/.local/share/applications/mimeapps.list

If the new entries are added into the file, the problem is the list of mimetypes the plug considers to be associated with music players is not sufficient.

To fix that we can either expand the list of mimetypes associated with each kind of app, or make the plug transition all associations from the old selection to the new selection, given that the "new" selection supports those mimetypes.

Revision history for this message
Chris Triantafillis (christriant) wrote : Re: [Bug 1081413] Re: defaults are not changed

I looked how Ubuntu's plug does this and i'm gonna give it a try...

2013/1/16 Sergey "Shnatsel" Davidoff <email address hidden>

> IDK, works for me, as far as switching web browsers goes.
>
> The system is reasonably complex, and xdg-open is merely a client of it
> (and a rather poor one too). The immediate effect of the plug should be
> observable as new entries in ~/.local/share/applications/mimeapps.list
>
> If the new entries are added into the file, the problem is the list of
> mimetypes the plug considers to be associated with music players is not
> sufficient.
>
> To fix that we can either expand the list of mimetypes associated with
> each kind of app, or make the plug transition all associations from the
> old selection to the new selection, given that the "new" selection
> supports those mimetypes.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1081413
>
> Title:
> defaults are not changed
>
> Status in Switchboard Plug Default Applications:
> Confirmed
>
> Bug description:
> 1. Install another music player (I did audacious and exaile)
> 2. Open Switchboard -> Defaults, and change the default music player
> 3. Open a music file (I used a .pls stream)
>
> Result: The music file only opens with the last default music player,
> which was noise.
>
> Note that noise isn't the problem - when I removed that app, switching
> between exaile and audacious gave the same results, and I even had to
> _right click > open with > other application_ to search for the other
> music player.
>
> ProblemType: Bug
> DistroRelease: elementary OS 0.2
> Package: elementary-desktop 1.284-0~355~precise1 [origin:
> LP-PPA-elementary-os-daily]
> ProcVersionSignature: Ubuntu 3.2.0-33.52-generic-pae 3.2.31
> Uname: Linux 3.2.0-33-generic-pae i686
> NonfreeKernelModules: nvidia
> ApportVersion: 2.0.1-0ubuntu15+elementary3~precise1
> Architecture: i386
> CrashDB: elementary_meta
> Date: Tue Nov 20 19:15:58 2012
> InstallationMedia: elementary OS 0.2 "Luna" - Beta 1 i386 (20121114)
> MarkForUpload: True
> SourcePackage: elementary-meta
> SuspiciousXErrors:
>
> ThirdParty: True
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/switchboard-plug-default-applications/+bug/1081413/+subscriptions
>

--
Best Regards,
Chris Triantafillis

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

I haven't looked into how Ubuntu's plug does it but I have my own idea and I'm going to give it a try. Afterwards we'll compare our implementations and see which one works best :)

Revision history for this message
Chris Triantafillis (christriant) wrote :

@Sergey I implement the way UBuntu's plug does it but i can't use it 100% because precise has an older version of GLib and i need a newer...

Remember the problem with function i needed and the vapi? Its GLib fault actually..

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

Actually I don't remember, but I think I can do it without a newer glib.
I also initiated a pretty bug rewriting of things in there and I'm going to introduce a custom data structure to generalize application handling. Vala is fun!

Revision history for this message
Chris Triantafillis (christriant) wrote :

I'm waiting for your code!

2013/1/24 Sergey "Shnatsel" Davidoff <email address hidden>

> Actually I don't remember, but I think I can do it without a newer glib.
> I also initiated a pretty bug rewriting of things in there and I'm going
> to introduce a custom data structure to generalize application handling.
> Vala is fun!
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1081413
>
> Title:
> defaults are not changed
>
> Status in Switchboard Plug Default Applications:
> Confirmed
>
> Bug description:
> 1. Install another music player (I did audacious and exaile)
> 2. Open Switchboard -> Defaults, and change the default music player
> 3. Open a music file (I used a .pls stream)
>
> Result: The music file only opens with the last default music player,
> which was noise.
>
> Note that noise isn't the problem - when I removed that app, switching
> between exaile and audacious gave the same results, and I even had to
> _right click > open with > other application_ to search for the other
> music player.
>
> ProblemType: Bug
> DistroRelease: elementary OS 0.2
> Package: elementary-desktop 1.284-0~355~precise1 [origin:
> LP-PPA-elementary-os-daily]
> ProcVersionSignature: Ubuntu 3.2.0-33.52-generic-pae 3.2.31
> Uname: Linux 3.2.0-33-generic-pae i686
> NonfreeKernelModules: nvidia
> ApportVersion: 2.0.1-0ubuntu15+elementary3~precise1
> Architecture: i386
> CrashDB: elementary_meta
> Date: Tue Nov 20 19:15:58 2012
> InstallationMedia: elementary OS 0.2 "Luna" - Beta 1 i386 (20121114)
> MarkForUpload: True
> SourcePackage: elementary-meta
> SuspiciousXErrors:
>
> ThirdParty: True
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/switchboard-plug-default-applications/+bug/1081413/+subscriptions
>

--
Best Regards,
Chris Triantafillis

Changed in switchboard-plug-default-applications:
assignee: Chris Triantafillis (christriant) → heriberto castillo leon (heribertocastilloleon007)
Revision history for this message
Cody Garver (codygarver) wrote :

This was fixed at the OS level but it still needs a fix for those not using elementary OS. But because of that I am removing it from the beta2 milestone.

Changed in switchboard-plug-default-applications:
milestone: luna-beta2 → none
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :
Cody Garver (codygarver)
Changed in switchboard-plug-default-applications:
milestone: none → luna-beta2
status: Confirmed → In Progress
assignee: heriberto castillo leon (heribertocastilloleon007) → Akshay Shekher (voldyman)
Cody Garver (codygarver)
Changed in switchboard-plug-default-applications:
status: In Progress → Fix Released
Revision history for this message
Clearflower (flowc111) wrote :

I tried switching music players again after the 2/20 update. "Defaults" now works for me as it should.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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