public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] mediamanager tries to open wrong path (SOLVED)
  @ 2007-02-01 17:27 99%     ` Gerhard Hoogterp
  0 siblings, 0 replies; 1+ results
From: Gerhard Hoogterp @ 2007-02-01 17:27 UTC (permalink / raw
  To: gentoo-user

On Thursday 01 February 2007 00:44, Neil Bothwick wrote:

> There is a way round this. It is possible, somewhere in the config of
> pmount/hal, to have devices mounted according to the /dev name only. I
> can't remember where this is, but Google and/or grep should find it.

After some searching around I found the HAL 0.4.0 specs 
(http://people.redhat.com/davidz/hal-spec/hal-spec.html) offering all the 
info needed to write my own policy:

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">
  <device>
    <match key="block.is_volume" bool="true">
      <match key="volume.fsusage" string="filesystem">
        <match key="info.parent"
		 string="/org/freedesktop/Hal/devices/storage_serial_KM_DYNAX_7D">
          <merge key="volume.policy.desired_mount_point"
		 type="string">camera</merge>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>

The line that makes it work for me is the <match key="info.parent" .. > which 
is true when my camera (a dynax 7D) tries to create an mount point. The 
result is a /media/camera which I can use in digikam to import photo's..

> > Besides, the card
> > isn't the camera.. so even on a logical level it's wacky..
>
> If your camera mounts as USB-storage, the camera is simply acting as an
> expensive card reader.

True, but the card is also not the cardreader..;-) Anyhow, for me this works 
as it looks at the camera and not at the card.. 

Thanks for thinking along!
 Gerhard


-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-01-31 20:31     [gentoo-user] mediamanager tries to open wrong path Gerhard Hoogterp
2007-01-31 21:54     ` Gerhard Hoogterp
2007-01-31 23:44       ` Neil Bothwick
2007-02-01 17:27 99%     ` [gentoo-user] mediamanager tries to open wrong path (SOLVED) Gerhard Hoogterp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox