Robert Citek wrote:
On Tue, Mar 23, 2010 at 9:57 AM,  <[email protected]> wrote:
   On 22 March 2010 23:56, Dos-Man 64 <[1][email protected]> wrote:
    How to determine default file manager and obtain listing of all disk drives?

     I need to do this in code. *On KNOPPIX, it seems to be Konqueror.
     OpenSuse seemed to be using Dolphin. *I'm actually not sure what
     DreamLinux uses.
For launching the file manager, I would set up a queue - i.e. Try to
launch dolphin. Not there? try nautilus. Not there? try konqueror. If
you hit the end of your list, prompt the user for a file manager, and
store this in your list of things to try.

But that doesn't really tell you what the default file manager is.
Dolphin, nautilus, and konqueror could all be on the same system and a
different one could be the default for different users on that same
system.
Robert makes an excellent point. If I were programming this, I would want to know:

1. How to determine what GUI is running.

2. Based on the answer to #1, where that GUI stores its setting for the default file manager, as I'm sure it must be tucked away in a config file (most likely text file)... somewhere.

NOTE: There's always the issue of some obscure GUI you're not even aware of, and sure enough, those users will be beating down your door cause your app fails to run their file manager.
-------------

Daniel's solution would get your app up and running quickly, however, it might pop up a file manager the user is unfamiliar with since it's very likely there's more than 1 file manager installed.

I like the idea of a cross-reference table which assumes that GNOME users are running nautilus, KDE users are running konqueror, etc. That would spare the time it takes to research all the diff GUI's for their default settings, and I suspect it would have your app running the correct file manager at least 80% of the time or better.

System analysis and design. Isn't it a joy?! ;)


BTW, DreamLinux runs Xfce which uses the Thunar file manager.

http://en.wikipedia.org/wiki/Xfce
http://en.wikipedia.org/wiki/Thunar

Regards,
- Robert


--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

To unsubscribe from this group, send email to linuxusersgroup+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.

Reply via email to