Here is what I have done. Note that I did not change the text of the file at all, I copied and pasted it, just added #! /bin/bash on the first line, since, as I mentioned, clicking on the icon before I did that simply opened the text file on the desktop. Now it opens Dolphin with floppy highlighted, but nothing in the whitespace window where files ought to show. And, as I said before, right-clicking on the icon just produces the usual right-click desktop menu, either before or after I made it an executable file. Here is the actual file, copied and pasted, with my first line addition:
doug@Linux1 etc]$ cat /home/doug/Desktop/Floppy
#! /bin/bash
[Desktop Action Format]
Exec=kfloppy %v
Name=Format
[Desktop Entry]
Actions=Format;
Comment[en_US]=
Comment=
Exec=mount /dev/fd0; dolphin /mnt/floppy
GenericName[en_US]=
GenericName=
Icon=media-floppy
MimeType=
Name[en_US]=Floppy
Name=Floppy
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=FSDevice
Dev=/dev/fd0
UnmountIcon=media-floppy
X-DBUS-ServiceName=
X-DBUS-StartupType=none
X-KDE-SubstituteUID=false
X-KDE-Username=
If I need to add ServiceName or Username, you didn't specify--I copied it exactly.
Here is fstab, in full:
[doug@Linux1 ~]$ cat /etc/fstab
# Entry for /dev/sda9 :
UUID=3d6bb7a2-fd4c-474d-b52b-8f4597169f35 / ext4 defaults 1 1
# Entry for /dev/sda11 :
UUID=0209a7d5-9e9a-4c9b-8c97-9f6f13f2e267 /home ext4 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=6e282f10-0e54-46bb-96c6-eb22a10ab999 swap swap defaults 0 0
# Entry for /dev/sda10 :
UUID=b37f7039-454f-4c65-8fda-f23b489c2443 swap swap defaults 0 0
none /dev/pts devpts defaults 0 0
/dev/fd0 /mnt/floppy auto rw,user,noauto,exec 0 0
here is the root directory with /mnt, some leading and trailing entries snipped (/)
[doug@Linux1 /]$ ls -la
total 120
drwxr-xr-x 22 root root 4096 Mar 16 03:06 ./
drwxr-xr-x 22 root root 4096 Mar 16 03:06 ../
-rw-r--r-- 1 root root 0 Mar 16 03:06 .autofsck
-rw------- 1 root root 113 Feb 14 13:02 .bash_history
drwxr-xr-x 2 root root 4096 Mar 18 17:22 bin/
/snip/
drwx------ 2 root root 16384 Feb 14 12:58 lost+found/
drwxrwxr-x 4 root root 4096 Mar 17 22:23 media/
drwxr-xr-x 3 root root 4096 Mar 17 21:23 mnt/ <<<<<<<
-rw-r--r-- 1 root root 1045 Jan 31 11:57 Module.symvers
-rw-rw-r-- 1 root root 0 Feb 14 13:02 null
/snip/
drwxr-xr-x 19 root root 4096 Mar 9 20:28 var/
[doug@Linux1 /]$
in the subdirectory /mnt is /floppy, and in the subdir /floppy is
[doug@Linux1 floppy]$ ls -la
total 8
drwxr-xr-x 2 root root 4096 Mar 17 21:23 ./
drwxr-xr-x 3 root root 4096 Mar 17 21:23 ../
**************************************
Researching KDiskFree, it seems that you have to have KDE 4.8, which is not in the repo. (Neither is 4.7)
This is what I have: Platform Version 4.6.5 (4.6.5)
I have downloaded kdf-0.5.1-1.src.rpm but have not unpacked or installed it yet, awaiting comment from the forum.
--doug