Bug 102827 - Can't change left-click action for media:/ devices
Summary: Can't change left-click action for media:/ devices
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: media (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 10:27 UTC by ieure
Modified: 2005-07-16 21:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ieure 2005-03-30 10:27:41 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I want to set up KDE to launch Kaffein when I click on media/dvdvideo icons in media:/, however this seems to be impossible.

1. Insert DVD video disc in my DVD drive
2. Open up media:/
3. Right-click DVD icon, click properties
4. Click 'Edit file type' icon in properties  dialog
5. Click 'Add' in 'Application Preference Order'
6. Enter 'kaffeine -d %f DVD' for the application in the text input; click OK.
7. Click 'Embedding' tab
8. Select 'Show file in separate viewer' radiobutton.
9. Click OK.
10. Click OK in the first Properties dialog.

When I left-click the DVD icon, I expect Kaffeine to launch and play the DVD; however, the disc is mounted and Konqueror browses to the mountpoint.
Comment 1 Kevin Ottens 2005-03-30 10:31:10 UTC
This is a wish... And I guess it won't make it before KDE4.
Comment 2 Iñaki Baz Castillo 2005-04-13 22:44:22 UTC
I'd like it too, but I see a problem:

Kaffeine uses xine and xine can't use KIO. In fact Kaffeine can use KIO but in not usable mode:
If you open media:/audiocd and drag it to Kaffeine playlist, the file will be copy to /temp, and it takes it a long time, so it's not usable.
Comment 3 ieure 2005-04-13 22:57:49 UTC
The case you mention is irrelevant to this bug report, as it only concerns the inability to assign a custom left-click action, and doesn't deal with DnD at all.

That issue should be solved by Kaffeine, which should be able to examine the type of the dropped object (e.g. media/videodvd) and do the right thing.
Comment 4 Iñaki Baz Castillo 2005-04-13 23:31:22 UTC
OK, you are right.
Anyway I vote for a possibility of change media:/audiocd asociated application in mimetypes. In my opinion it would be better to open directly Kscd (or any chosen program) instead of Konqueror.
Comment 5 David Anderson 2005-07-14 16:00:46 UTC
ibc, I think you're right about it being good to directly open kscd or kaffeine with an audio CD or video CD.... have you filed a request in bugs.kde.org?
Comment 6 David Anderson 2005-07-14 16:15:09 UTC
ieure - you can get this working right now in this slightly hackish way....

Instead of:

6. Enter 'kaffeine -d %f DVD' for the application in the text input; click OK.

Do this:

6. Enter 'kaffeine --play dvd:/ --title %U' for the application in the text input; click OK.

This works if you only have one DVD player. The %U persuades KDE to not mount the drive; the --title seems to be ignored and prevents media:/hda (or whatever your device is) from being added to the Kaffeine playlist and an error then being shown when you've finished playing the whole DVD.
Comment 7 David Anderson 2005-07-14 16:34:56 UTC
Even better is:

kaffeine --play --device /dev%f --title %U DVD

This should cope with multiple DVD drives (I assume that in the one I posted in #6 Kaffeine defaults to /dev/dvd?), and it actually specifies DVD (though I think that's the default anyway, but better safe than sorry).
Comment 8 Iñaki Baz Castillo 2005-07-14 16:52:01 UTC
El Jueves, 14 de Julio de 2005 16:00, David Anderson escribió:
|| ------- Additional Comments From david readingroom com  2005-07-14 16:00
|| ibc, I think you're right about it being good to directly open
|| kscd or kaffeine with an audio CD or video CD.... have you filed a request
|| in bugs.kde.org?

No, I have just voted for this Bug, because it already exists.
Comment 9 David Anderson 2005-07-14 17:45:50 UTC
Apparently this is fixed in Kaffeine CVS and will be in the soon-to-be-released 0.7 (i.e. Kaffeine can handle media:/ urls, so it can be invoked with a simple kaffeine -d %u DVD), so I think that this bug can be closed now.

See the code at:
http://cvs.sourceforge.net/viewcvs.py/kaffeine/kaffeine/kaffeine/playlist.cpp?r1=1.84&r2=1.85

Credit to  
Christophe Thommeret <hftom -(at)- free.fr> for fixing it.
Comment 10 ieure 2005-07-16 21:00:20 UTC
David,

Seems to be fixed in 3.4.1. Changing the media/dvdvideo application to the command in #7 works fine for me now.