Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Autostart digikam after camera is mounted [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1726

PostPosted: Tue Jun 19, 2007 9:04 pm    Post subject: Autostart digikam after camera is mounted [solved] Reply with quote

While in KDE, I setup both 'mounted camera' and 'camera' to automatically run 'digikam' as soon as the camera or mounted camera is detected. When I turn on the camera and it automounts, however, I get this:

Quote:

The file or folder / does not exist.


Simply running 'digikam' from my KMenu or from the terminal works fine, though.


Last edited by alienjon on Mon Aug 27, 2007 9:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Wed Jun 20, 2007 12:14 am    Post subject: Reply with quote

Well, the command kmenu uses is this:
Code:

digikam -caption "%c" %i %m


I don't see why that should matter, but maybe it'll work.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1726

PostPosted: Wed Jun 20, 2007 4:23 am    Post subject: Reply with quote

I get an error with that in the terminal. I think some of the parameters assume information that KMENU would otherwise provide.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Wed Jun 20, 2007 6:06 am    Post subject: Reply with quote

Yeah, that won't work in a terminal. All those % variables would be replaced before the command actually got issued. But, it should work if you're setting actions or file associations.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1726

PostPosted: Wed Jun 20, 2007 6:08 am    Post subject: Reply with quote

Still a no go with or without those parameters. Same '/' error in both cases. I wonder if I can specify the directory as a parameter and if that would fix the issue?
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1726

PostPosted: Wed Jun 20, 2007 6:18 am    Post subject: Reply with quote

ya, just tried it but I still get the same error.
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1726

PostPosted: Mon Aug 27, 2007 9:46 pm    Post subject: Reply with quote

Found the fix. Apparently this was a bug with digiKam itself. Updating to 0.9 series fixed the issue. Here's where I found the solution (so I don't take props where they're due!)
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Mon Aug 27, 2007 11:46 pm    Post subject: Reply with quote

What happens if you already have digiKam open, then attach a camera?
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1726

PostPosted: Tue Aug 28, 2007 12:22 am    Post subject: Reply with quote

It just keeps the one instance of digiKam but opens the view for that specific camera. (Shows the pictures currently on the camera with the options to download/delete them)
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Tue Aug 28, 2007 12:30 am    Post subject: Reply with quote

What command are you using to start digikam?

If i have ivman run digikam --detect-camera while digikam is already running I get two instances running.
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1726

PostPosted: Tue Aug 28, 2007 1:51 am    Post subject: Reply with quote

I can't actually tell. After the upgrade there was a new option created for the 'camera' type listed: "digiKam detect and download" (as well as 2 others with similar names but for 'mounted camera' and 'unmounted camera', not 'camera'). I'd like to tell you specifically what they are, but the 'properties' button is greyed out so I can't look at them specifically. I think they're something added to the newest version of the program. Did you upgrade to 0.9.2?
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Tue Aug 28, 2007 2:28 am    Post subject: Reply with quote

alienjon wrote:
Did you upgrade to 0.9.2?


Yeah, but i'm not using KDE to autostart it. I'm just using a plain old ivman rule
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1726

PostPosted: Tue Aug 28, 2007 4:33 am    Post subject: Reply with quote

That would probably be why. If you know where the kdinit (or whatever kde directly uses to run these) config or data file that would contain this info would be, just let me know and I could check for ya.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum