Log of /branches/KDE/3.5/kdebase/kioslave/media/mediamanager/halbackend.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 864963 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 26 08:55:23 2008 UTC (9 years, 3 months ago) by abizjak
File length: 48094 byte(s)
Diff to previous 803208
Fix the passing the 'locale' mount option:
- read the real locale from the environment (including the charset), the language is of no use to FS drivers,
- do not attempt to store the locale in the config file, it has to be the current one,
- only pass the locale if the filesystem type is ntfs-3g, HAL is broken and lists 'locale' as available with the Linux 
in-kernel ntfs driver (http://bugs.freedesktop.org/show_bug.cgi?id=17753)


Revision 803208 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 2 10:02:56 2008 UTC (9 years, 8 months ago) by lunakl
File length: 47903 byte(s)
Diff to previous 785706
One more case of not letting hal handle media from other backends,
(dbus assert with nfs mounts (':' in dbus path). bnc#359424



Revision 785706 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 14 19:28:14 2008 UTC (9 years, 9 months ago) by helio
File length: 47806 byte(s)
Diff to previous 740044
- In case of ntfs external devices, hal can have the option for locale at mount


Revision 740044 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 22 12:16:39 2007 UTC (10 years, 1 month ago) by pley
File length: 47419 byte(s)
Diff to previous 724100
- Fixed a small memleak: use libhal_free_string_array(volumes) instead
  of free(volumes)
- USB floppy drives have media-detection enabled. Thus we can react on
  insertion of a floppy disk
- Fixed empty labels for floppy drives


Revision 724100 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 11 12:03:04 2007 UTC (10 years, 3 months ago) by lunakl
File length: 46845 byte(s)
Diff to previous 662500
Don't unmount media from other backends. Fixes a dbus assert with nfs mounts (':' in dbus path).



Revision 662500 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 8 12:48:07 2007 UTC (10 years, 8 months ago) by coolo
File length: 46750 byte(s)
Diff to previous 662486
make sure we unmount the device before we even try to 
eject - and give correct error message if the device is busy
BUG: 143353


Revision 662486 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 8 10:40:22 2007 UTC (10 years, 8 months ago) by coolo
File length: 46691 byte(s)
Diff to previous 657182
only leave out sync for vfat if hal/kernel supports flush


Revision 657182 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 23 12:55:30 2007 UTC (10 years, 8 months ago) by coolo
File length: 46659 byte(s)
Diff to previous 615516
don't handle floppy drives as with old HAL versions - newer
ones have a volume on its own, so better use that one (still
leaving older logic in place)


Revision 615516 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 21 20:25:39 2006 UTC (11 years ago) by cartman
File length: 47582 byte(s)
Diff to previous 613652
Fix mounting of floppies, patch by Wang Baisheng, great thanks. Tested by me & other users. Approved by Kevin.
BUG:FIXED:120619



Revision 613652 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 14 14:03:32 2006 UTC (11 years ago) by mlaurent
File length: 46842 byte(s)
Diff to previous 605183
Don't define at compile socket
(use function which define it at runtime)
Patch ok'ed by kevin


Revision 605183 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 15 18:49:14 2006 UTC (11 years, 1 month ago) by cartman
File length: 46995 byte(s)
Diff to previous 603818
Init DBusError to avoid problems like:

3104: arguments to dbus_move_error() were incorrect, assertion "(dest) == NULL || !dbus_error_is_set ((dest))" failed in file dbus-errors.c line 243.

CCMAIL:coolo@kde.org



Revision 603818 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 10 11:28:28 2006 UTC (11 years, 2 months ago) by coolo
File length: 46966 byte(s)
Diff to previous 601033
libhal crashes left and right when you pass non existing UDIs,
so we're better more careful than crashing kded


Revision 601033 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 1 19:07:10 2006 UTC (11 years, 2 months ago) by fabo
File length: 46763 byte(s)
Diff to previous 601028
camera icon from mimetype (approved by Kevin Ottens)

* Do not set icons for cameras explicitly, because they can be
  determined from the mimetype. In addition, always reset a medium icon
  when properties of the medium change. This fixes a problem when the
  camera_mounted icon is not reset once the camera storage has been
  unmounted.

Thanks to Modestas Vainius



Revision 601028 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 1 18:55:12 2006 UTC (11 years, 2 months ago) by fabo
File length: 46839 byte(s)
Diff to previous 593835
halbackend fstab improvements (approved by Kevin Ottens)

* fixes HALBackend::inInFstab() to correctly match the fstab device node
  that is a symlink.
* Improve error messages for HAL/fstab unmount failures. Include a list
  of processes using the device in them (if there are any).
* When handling fstab devices, make HALBackend::mount() and
  HALBackend::umount() calls block until the operation actually
  completes (the same behaviour as with HAL devices).
* In mounthelper always unmount a device before ejecting it. However,
  if unmount fails, still try to eject the device. In case of failure,
  display the unmount error message which is more informative.

Thanks to Modestas Vainius.

--Cette lgne, et les suivantes ci-dessous, seront ignorées--

M    kioslave/media/mounthelper/kio_media_mounthelper.cpp
M    kioslave/media/mounthelper/kio_media_mounthelper.h
M    kioslave/media/mediamanager/halbackend.cpp
M    kioslave/media/mediamanager/halbackend.h


Revision 593835 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 9 09:32:16 2006 UTC (11 years, 3 months ago) by coolo
File length: 43922 byte(s)
Diff to previous 566466
devices that are in fstab should show up no matter what HAL thinks
CCMAIL: kde-packager@kde.org


Revision 566466 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 08:18:37 2006 UTC (11 years, 5 months ago) by kling
File length: 43573 byte(s)
Diff to previous 553501
Check the return value from dbus_connection_open_private().
Fixes KDED crashing on startup when D-BUS is unavailable.

If at all possible, this should go into 3.5.4.

CCMAIL: coolo@kde.org


Revision 553501 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 21 08:56:19 2006 UTC (11 years, 6 months ago) by coolo
File length: 43385 byte(s)
Diff to previous 551884
better support for baseurl medias as discussed with Kevin


Revision 551884 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 15 21:37:08 2006 UTC (11 years, 6 months ago) by ervin
File length: 43323 byte(s)
Diff to previous 551304
Avoid to leak devices lists.

Thanks for pointing this.
BUG: 117623


Revision 551304 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 14 09:09:31 2006 UTC (11 years, 7 months ago) by coolo
File length: 43223 byte(s)
Diff to previous 551288
hal 0.4 simply won't work any more 


Revision 551288 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 14 07:58:09 2006 UTC (11 years, 7 months ago) by coolo
File length: 44835 byte(s)
Diff to previous 550578
indented the right branch


Revision 550578 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 12 10:31:42 2006 UTC (11 years, 7 months ago) by ervin
File length: 41017 byte(s)
Diff to previous 495057
Merge coolo's branch, it contains quite some fixes and interesting 
features. It'll be available in KDE 3.5.4, couldn't be committed before,
but thanks to the partial feature unfreeze...

FEATURE:
BUG: 50185
BUG: 105482
BUG: 108823
BUG: 114854
BUG: 120619
BUG: 121833
BUG: 127788
CCMAIL: coolo@kde.org


Revision 495057 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 6 23:25:35 2006 UTC (12 years ago) by qbast
File length: 20879 byte(s)
Diff to previous 474165
Workaround lots of buggy hal packages that don't  set camera.libgphoto2_support
BUG: 175052



Revision 474165 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 25 16:12:53 2005 UTC (12 years, 2 months ago) by ervin
File length: 20783 byte(s)
Diff to previous 465343
Don't claim the HAL device list, if we failed to initialize correctly
the HAL context. Leads to a crash on some install (depends where the
initialization stage stopped).

CCBUG:113194



Revision 465343 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 29 13:24:25 2005 UTC (12 years, 3 months ago) by mueller
File length: 20799 byte(s)
Diff to previous 463392
SVN_SILENT: fix typo

Revision 463392 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 23 21:16:48 2005 UTC (12 years, 3 months ago) by ervin
File length: 20798 byte(s)
Diff to previous 461209
HAL spec for camera slightly changed between 0.4.x and 0.5.x.

CCBUG:111643


Revision 461209 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 16 20:45:22 2005 UTC (12 years, 3 months ago) by lodewyck
File length: 20588 byte(s)
Diff to previous 444456
Updated copyright information



Revision 444456 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 10 09:12:11 2005 UTC (12 years, 5 months ago) by ervin
File length: 20572 byte(s)
Diff to previous 438982
Fix the name of mounted/unmounted icons (_mount/_unmount) in the HAL Backend.


Revision 438982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 26 18:54:59 2005 UTC (12 years, 5 months ago) by coolo
File length: 20436 byte(s)
Diff to previous 438938
branching of 3.5 and arts 1.5 


Revision 438938 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 26 16:37:47 2005 UTC (12 years, 5 months ago) by qbast
Original Path: trunk/KDE/kdebase/kioslave/media/mediamanager/halbackend.cpp
File length: 20436 byte(s)
Diff to previous 438815
Allow blank discs to be listed too



Revision 438815 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 26 07:34:01 2005 UTC (12 years, 5 months ago) by ervin
Original Path: trunk/KDE/kdebase/kioslave/media/mediamanager/halbackend.cpp
File length: 20342 byte(s)
Diff to previous 438530
Use the newly available icon for portable audio players.

BUG:97064


Revision 438530 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 25 09:30:49 2005 UTC (12 years, 5 months ago) by ervin
Original Path: trunk/KDE/kdebase/kioslave/media/mediamanager/halbackend.cpp
File length: 20352 byte(s)
Diff to previous 438258
Unregister all the devices registered by the HAL backend at deletion time.
(That's the behavior of all the other backends)


Revision 438258 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 24 18:43:11 2005 UTC (12 years, 5 months ago) by ervin
Original Path: trunk/KDE/kdebase/kioslave/media/mediamanager/halbackend.cpp
File length: 20077 byte(s)
Diff to previous 438199
Fix compile issues using HAL 0.5.x
Seems that they have been introduced with the usb-storage cameras support.


Revision 438199 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 24 15:46:28 2005 UTC (12 years, 5 months ago) by ervin
Original Path: trunk/KDE/kdebase/kioslave/media/mediamanager/halbackend.cpp
File length: 20065 byte(s)
Diff to previous 437394
Modify mediamanager and medianotifier to have a better notification handling.

- mediamanager now indicates (through its DCOP signals) if a modification
can result in a notification or not.
- medianotifier now listen to the mediamanager directly (no more media:/ listing)
and notify only if it's allowed.

All the mediamanager backends have been modified to take care of this extension.
They are the only ones to know if it's appropriate to notify or not.



Revision 437394 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 21 18:12:15 2005 UTC (12 years, 5 months ago) by qbast
Original Path: trunk/KDE/kdebase/kioslave/media/mediamanager/halbackend.cpp
File length: 19962 byte(s)
Diff to previous 433356
- Fix handling of usb-storage camera - only one item is created
with mimetype media/camera_(un)mounted
- Change label from "Camera" to usb.product retrieved from HAL
- Fixed popup window caption (/ was being changed to %2f)



Revision 433356 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 10 14:57:08 2005 UTC (12 years, 6 months ago) by ervin
Original Path: trunk/KDE/kdebase/kioslave/media/mediamanager/halbackend.cpp
File length: 18933 byte(s)
Diff to previous 431628
Ok, this time we have it! The media ioslave stack is complete, we notify the
user when a new medium is detected and we propose a set of actions.

It even introduces a new kcontrol module to configure this feature. It'll
soon be extended in order to tune a bit the media ioslave behavior.

Of course, further testing is needed to find bugs in this new code.

Thanks a lot to Jean-Remy Falleri who provided the initial base code. It's
now integrated inside kdebase after some refactoring.

We're now only lacking more konqueror services for media/* mimetypes.

CCMAIL:jr.falleri@laposte.net
BUG:59833



Revision 431628 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 4 21:10:13 2005 UTC (12 years, 6 months ago) by lodewyck
Original Path: trunk/KDE/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18933 byte(s)
Diff to previous 431577
Patch from ArchLinux for JAZ drives




Revision 431577 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 4 19:02:09 2005 UTC (12 years, 6 months ago) by mueller
Original Path: trunk/KDE/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18764 byte(s)
Diff to previous 430673
update FSF address

Revision 430673 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 2 07:39:43 2005 UTC (12 years, 6 months ago) by lodewyck
Original Path: trunk/KDE/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18761 byte(s)
Diff to previous 427741
HAL 0.5 fixes.

Thanks to Jonathan Riddell and Jan de Groot



Revision 427741 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 18:03:00 2005 UTC (12 years, 6 months ago) by lodewyck
Original Path: trunk/KDE/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18446 byte(s)
Diff to previous 427372
Updated copyright information



Revision 427372 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 20 13:22:26 2005 UTC (12 years, 6 months ago) by jriddell
Original Path: trunk/KDE/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18439 byte(s)
Diff to previous 423547
API fix for HAL 0.5


Revision 423547 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 8 20:39:37 2005 UTC (12 years, 7 months ago) by lodewyck
Original Path: trunk/KDE/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18208 byte(s)
Diff to previous 416751
Fixed memory leak in variables allocated by libhal-storage




Revision 416751 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 22 13:00:51 2005 UTC (12 years, 7 months ago) by lodewyck
Original Path: trunk/KDE/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18096 byte(s)
Diff to previous 415044
Move the watch property initialization



Revision 415044 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 17 16:27:07 2005 UTC (12 years, 7 months ago) by lunakl
Original Path: trunk/KDE/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18152 byte(s)
Diff to previous 409203
Debug areas for the media and remote kioslaves, they seem to be rather chatty.



Revision 409203 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 4 05:39:42 2005 UTC (12 years, 8 months ago) by (unknown author)
Original Path: trunk/KDE/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18060 byte(s)
Diff to previous 402030
moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames kdegraphics kdemultimedia kdenetwork kdesdk kdetoys kdeutils kdevelop kdewebdev kdepim kdebase kdelibs kde-i18n arts into /trunk/KDE/

Revision 402030 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 30 21:37:21 2005 UTC (12 years, 9 months ago) by lodewyck
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18060 byte(s)
Diff to previous 400980
Added a missing dbus_error_init

CCBUG:101075


Revision 400980 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Mar 27 13:24:33 2005 UTC (12 years, 9 months ago) by lodewyck
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 18034 byte(s)
Diff to previous 400700
Updated the media kioslave HALBackend to the libhal API version 0.5

The HALBackend now works with HAL 0.5 / DBus 0.31, though this port is still
experimental. Compatibility with HAL 0.4.x / DBus 0.23 is preserved for the
time being, at least until HAL 0.6 is released.


CCBUG:101075


Revision 400700 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 26 08:57:10 2005 UTC (12 years, 9 months ago) by lodewyck
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 16229 byte(s)
Diff to previous 400196
- The halbackend now compiles against libhal-storage 0.5.
Backward compatibility with libhal-storage 0.4 is preserved for the time being.
This does not solve the dbus-qt bindings 0.31 problem.

- Complete Coolo's patch about kded crashing.

CCBUG:101075


Revision 400196 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 24 10:27:00 2005 UTC (12 years, 9 months ago) by coolo
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 15534 byte(s)
Diff to previous 389378
This code crashes when unplugging (some) devices.


Revision 389378 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 14 15:47:23 2005 UTC (12 years, 10 months ago) by lodewyck
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 15506 byte(s)
Diff to previous 385512
Treat ZIP drives as floppy drives.

BUGS:98677
CCMAIL:ervin@ipsquad.net


Revision 385512 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 2 20:29:43 2005 UTC (12 years, 11 months ago) by lodewyck
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 14943 byte(s)
Diff to previous 385315
The HALBackend now makes use of the LinuxCDPolling backend to identify VCD,
SVCD and Video DVD types.


Revision 385315 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 2 12:12:53 2005 UTC (12 years, 11 months ago) by jriddell
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 14626 byte(s)
Diff to previous 385302
Keep icons names consistant


Revision 385302 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 2 11:50:04 2005 UTC (12 years, 11 months ago) by jriddell
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 14625 byte(s)
Diff to previous 379135
Support for recognising different pluggable media
Based on patch form Victor Daniel Velasco Martenez <vdvelascomtz@prodigy.net.mx>


Revision 379135 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 16 16:28:42 2005 UTC (12 years, 11 months ago) by lodewyck
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 13768 byte(s)
Diff to previous 359982
Fix a crash at startup when DBus is not running


Revision 359982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 2 22:05:51 2004 UTC (13 years, 2 months ago) by lodewyck
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 13740 byte(s)
Diff to previous 357752
Fix crash with libhal-storage


Revision 357752 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Oct 25 22:35:32 2004 UTC (13 years, 2 months ago) by lodewyck
Original Path: trunk/kdebase/kioslave/media/kdedmodule/halbackend.cpp
File length: 13315 byte(s)
This is a Hardware Abstraction Layer backend for the media:/ kioslave. It uses HAL for listing and updating media. It currently supports mountable volumes, audio CDs and gphoto2 camera.
(Not compiled and not activated by now)


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a