maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How To : Associate MPlayer, Transmission, and other apps as default handlers (https://talk.maemo.org/showthread.php?t=17757)

debernardis 2010-06-05 06:14

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Code:

sudo gainroot
apt-get install python-glade2

This allows the guy to show but doesn't suffice in my hands to make the program work.

EDIT after manually moving the pdf line in /etc/gnome/default.list to dbus-switchboard, it started working for pdf.

Thanks, Alan!

m0da 2010-06-05 06:24

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
works now, thanks to you, debernardis
and, of course, qole

edit: right, after testing it out, gui shows, but files aren't handled any differently. i change the handler, then save from the dropdown at the top, however, results are not as expected (i set kmplayer to play all video filetypes, but media player is still the default).

debernardis 2010-06-05 06:54

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Try to delete the association and redo it from scratch. I had to manually edit the mime associations file as I said.

hycraig 2010-06-05 12:40

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Quote:

Originally Posted by debernardis (Post 700651)
Code:

sudo gainroot
apt-get install python-glade2

This allows the guy to show but doesn't suffice in my hands to make the program work.
!

hi i've done this ok but the app still closes before it loads anything. is there anyway to check why this could be?
thanks

qole 2010-06-05 14:56

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
I will add python-glade2 to the dependencies.

Please don't edit the files manually, we can't test the app properly that way.

I didn't have to touch the gnome file at all.
Did you set the default in the GUI? I had to switch application/pdf to dbus-switchboard in the defaults tab as well as setting up the handler and xref.

Also, remember to save your changes!

qole 2010-06-05 16:15

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
The new version I just uploaded should install python-glade2 now...

Bec 2010-06-05 16:37

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Quote:

Originally Posted by m0da (Post 700639)
wish i could say the same.
i installed, tried to run, no go.
rebooted, tried to run, no go.
disconnected cellular data and shut down all apps, no go.

no go = it says dbus browser switchboard at top with the loading icon. after a few seconds, it closes by itself (no switchboard gui actually popped up).

Ok same thing over here and I can't uninstall it.

"Unable to uninstall 'DBus Switchboard'"
and then
"Internal error. Application App. manager closed"

Tried via terminal.
Can't uninstall, package is in a very bad inconsistent state, can't reinstall either.

I guess some sub process is still running, which one could that be?

debernardis 2010-06-05 18:04

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
The old version has an error in the postinst script. To correct, as root, do

Code:

leafpad /var/lib/dpkg/info/dbus-switchboard.postrm
and join the last line to the preceding one so that the last line of the script reads like

Code:

# cp /usr/share/applications/defaults.list~ /usr/share/applications/defaults.list
all in the same line.

Then you can issue

Code:

apt-get install --reinstall dbus-switchboard
and you're done.

EDIT it seems that the latest version has the same error. Qole, please check it :)

Bec 2010-06-05 18:50

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Thanks:
Code:

home/user # apt-get install --reinstall dbus-switchboard
Reading package lists... Done
Building dependency tree     
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
10 not fully installed or removed.
Need to get 0B/47,5kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 31878 files and directories currently installed.)
Preparing to replace dbus-switchboard 1.2.9-2fremantle1 (using .../dbus-switchboard_1.2.9-2fremantle1_all.deb) ...
Unpacking replacement dbus-switchboard ...
Setting up telepathy-salut (0.3.12-1) ...
Setting up account-plugin-salut (0.8) ...
/var/lib/dpkg/info/account-plugin-salut.postinst: line 6: /etc/init.d/avahi-daemon: not found
dpkg: error processing account-plugin-salut (--configure):
 subprocess post-installation script returned error exit status 127
Setting up python-osso (0.4-0maemo4) ...
Setting up python-telepathy (0.15.17-1) ...
Setting up python2.5-minimal (2.5.4-1maemo6) ...
Setting up python2.5 (2.5.4-1maemo6) ...
dpkg: dependency problems prevent configuration of telepathy-extras:
 telepathy-extras depends on account-plugin-salut; however:
  Package account-plugin-salut is not configured yet.
dpkg: error processing telepathy-extras (--configure):
 dependency problems - leaving unconfigured
Setting up telepathy-haze (0.3.4-1maemo0) ...
Setting up python-hildon (0.9.0-1maemo16) ...
Setting up dbus-switchboard (1.2.9-2fremantle1) ...
Unknown media type in type 'sketch/png'

foo
Errors were encountered while processing:
 account-plugin-salut
 telepathy-extras
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #


debernardis 2010-06-05 19:11

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
This time (ver 3) I had to edit /usr/share/applications/defaults.list by hand and change the association of pdf files to dbus-switchboard.
Also, in my hands the gui app doesn't delete Xrefs (even if it can create new ones).
Hope that helps, Alan.


All times are GMT. The time now is 11:07.

vBulletin® Version 3.8.8