Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 300135 Details for
Bug 400755
kde-base/solid reads OpticalDisc, when the icon for the disc is queried
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Fix to prevent DVD from spinning all the time
kdelibs-4.7.2_dvd_spinup_fix.patch (text/plain), 1.85 KB, created by
Franz Trischberger
on 2012-01-28 13:11:43 UTC
(
hide
)
Description:
Fix to prevent DVD from spinning all the time
Filename:
MIME Type:
Creator:
Franz Trischberger
Created:
2012-01-28 13:11:43 UTC
Size:
1.85 KB
patch
obsolete
>--- solid/solid/backends/udisks/udisksdevice.cpp.org 2011-12-22 20:28:47.539273958 +0100 >+++ solid/solid/backends/udisks/udisksdevice.cpp 2011-12-22 20:29:17.170274459 +0100 >@@ -560,32 +560,6 @@ > { > if ( isOptical ) // optical stuff > { >- bool isWritable = prop( "OpticalDiscIsBlank" ).toBool() || prop("OpticalDiscIsAppendable").toBool(); >- >- const UDisks::OpticalDisc disc(const_cast<UDisksDevice*>(this)); >- Solid::OpticalDisc::ContentTypes availContent = disc.availableContent(); >- >- if (availContent & Solid::OpticalDisc::VideoDvd) // Video DVD >- return "media-optical-dvd-video"; >- else if ((availContent & Solid::OpticalDisc::VideoCd) || (availContent & Solid::OpticalDisc::SuperVideoCd)) // Video CD >- return "media-optical-video"; >- else if ((availContent & Solid::OpticalDisc::Data) && (availContent & Solid::OpticalDisc::Audio)) // Mixed CD >- return "media-optical-mixed-cd"; >- else if (availContent & Solid::OpticalDisc::Audio) // Audio CD >- return "media-optical-audio"; >- else if (availContent & Solid::OpticalDisc::Data) // Data CD >- return "media-optical-data"; >- else if ( isWritable ) >- return "media-optical-recordable"; >- else >- { >- if ( media.startsWith( "optical_dvd" ) || media.startsWith( "optical_hddvd" ) ) // DVD >- return "media-optical-dvd"; >- else if ( media.startsWith( "optical_bd" ) ) // BluRay >- return "media-optical-blu-ray"; >- } >- >- // fallback for every other optical disc > return "media-optical"; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 400755
: 300135