Hi, all.
I have dual-boot on my office laptop (NT and SuSE 8), which,
in addition to ReiserFS and NTFS partitions also has a
small DOS partition for safe writing from Linux (I've been
told that I can do damage if I try to write directly to
NTFS from Linux). Anyway, SuSE sensed my partition scheme
and gave me a nice little icon in my KDE desktop, that
mounts the DOS partition and automatically launches
Konqueror, to view it.
Well, I have an smb connection to several network partitions
(which I currently mount by hand, from a console command
line). It occurs to me that a similar icon for mounting
each smb drive -- and launching the browser -- would be
just peachy.
So, I copied the script behind the original icon, and began
editing it to see what makes it work. (I thought I could
just tweak it a bit so it would work with smb...)
Here's the original script:
[Desktop Entry]
Comment=Mount and browse a Windows filesystem
Comment[cs]=PøipojenĂ a prohlĂÂľenĂ systĂ©mu souborĂą
Comment[de]=Ein Windows Dateisystem mounten und öffnen
Dev=/dev/hda9
FSType=Default
Icon=windows_harddrive_mount
MountPoint=/windows/E
Name=Windows_E
Name[en_US]=Windows_E
ReadOnly=0
Type=FSDevice
UnmountIcon=windows_harddrive_unmount
So, right away, I'm getting lost.
What would replace "Dev="?
I looked in /dev, and I don't see a /smb device, nor
anything else that I recognize as appropriate. Since smb
connections are temporary, is there another directory where
the devices would live?
Could I just leave that out? Is it necessary to declare
anything there?
Then, there's "FSType=Default". What should go there?
The icon can stay. I like it.
The "MountPoint=" will be one of my smb mountpoints, so
that's ok, too. The "Name=" and Name[en_US]=" will
obviously change, and I'm ok there, too.
"ReadOnly=0" will be unchanged.
Now, how about "Type=FSDevice"?? what should that be for an
smb device, and again is it even a necessary setting?
AND THE BIG QUESTION... should I be trying to do it this way
at all? The two reasons that I wanted to re-use the
existing script are:
1) it looked like a working example from which I could learn
something, but have a chance of getting it right...
2) there's nothing actually IN the script that actually
launches the browser, yet the browser gets launched,
therefore, I assume that there's something that KDE
recognizes from the script, or from its name, or from it's
icon, or... that causes Konqueror to launch automatically
once the script has mounted the alien partition.
If there's an existing FAQ or HowTo, just point me. If not,
then if somebody can explain what would work AND what my
misconceptions are, you'll probably help some other people
who were too /s/m/a/r/t/ shy to ask the same questions.
Thanks very much.
/kevin
PS: Yes, I could just automate the smb connections at
startup, but they often change, or are temporarily
unavailable, and I'd be getting error messages and slow
startup and... like that. Besides, I want to understand
how that script does what it does, and what equivalent
declarations and settings would be needed for the smb
version of it.