> On March 12, 2013, 4:14 p.m., Dan Vrátil wrote:
> > This is not right. If you want to have a daemon, you should write a KDED 
> > module and modify Solid (frontend or backends) to access the information 
> > from the daemon.
> 
> Alexander Mezin wrote:
>     I've just got an idea that it would be better if the daemon will be 
> connected to the system bus.
>     Currently cache is local to session, so, for example, if I logged out, 
> and then logged in, disk starts spinning. If the daemon will be on system 
> bus, cache won't be lost.
>     However, it means that it will be run as root and will be a 
> QCoreApplication, not KDEDModule. Which way should I choose?

Restarting user session is not common enough usecase (in this context) to 
justify running any part of KDE as root. Make it a KDEDModule. You don't have 
to care about spinning the disk up, since you will be running in a separate 
process, thus you can do things asynchronously and no blocking on UI/login 
process will occur.


- Dan


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109384/#review29073
-----------------------------------------------------------


On March 11, 2013, 2:18 p.m., Alexander Mezin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109384/
> -----------------------------------------------------------
> 
> (Updated March 11, 2013, 2:18 p.m.)
> 
> 
> Review request for Solid and Lukáš Tinkl.
> 
> 
> Description
> -------
> 
> While bug 261552 marked as fixed, optical drive spin-ups still happen more 
> frequent than needed. Also, if there is a corrupted optical disk in the 
> drive, a long delay happens when opening new file manager window (bug 306426).
> 
> This patch introduces a daemon that reads optical disks and remembers 
> results, so disk access happens only once, usually right after new disk is 
> inserted.
> This is for udisks2 backend, but should also work with udisks 1. The daemon 
> doesn't contain any backend-specific code.
> 
> 
> This addresses bugs 261552 and 306426.
>     http://bugs.kde.org/show_bug.cgi?id=261552
>     http://bugs.kde.org/show_bug.cgi?id=306426
> 
> 
> Diffs
> -----
> 
>   solid/solid/CMakeLists.txt 8142c7179686ee5b8381f4d336ca8296d4e6d4cd 
>   solid/solid/backends/udisks2/diskscanner.h PRE-CREATION 
>   solid/solid/backends/udisks2/diskscanner.cpp PRE-CREATION 
>   solid/solid/backends/udisks2/org.kde.Solid.DiskScanner.service.cmake 
> PRE-CREATION 
>   solid/solid/backends/udisks2/udisksopticaldisc.h 
> 0cdcc6698e3021394cfba949133f773677356651 
>   solid/solid/backends/udisks2/udisksopticaldisc.cpp 
> 23a4fc1fa56c9077529cc7d7409871c7636ed40f 
> 
> Diff: http://git.reviewboard.kde.org/r/109384/diff/
> 
> 
> Testing
> -------
> 
> I tested it on top of kdelibs-4.10.1. Video DVDs are recognized correctly.
> 
> 
> Thanks,
> 
> Alexander Mezin
> 
>

_______________________________________________
Kde-hardware-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-hardware-devel

Reply via email to