X and Fluxbox :: 2 commands for 1 icon



hey guys, im trying to make an icon that will open up emelfm for my winXP and have it automatically mounted, i tried

Code Sample

table Icon
 Type: Program
 Caption: Windows Partition
 Command: sudo mount /dev/hda2, sudo emelfm /mnt/hda2
 Icon: .xtdesktop/exec_wine.png
 X: 184
 Y: 103
end



on my .ink for the windows partition icon
but it just didn't work any suggestions?

Command: sudo mount /dev/hda2; sudo emelfm /mnt/hda2
or
Command: sudo mount /dev/hda2 && sudo emelfm /mnt/hda2

I really don't know if this works in xtdesktop, but if the commands are passed to bash it should work.
The first one runs both commands in sequence.  The second one runs the second command only if the first is successful.

i just added sudo mount /dev/hda2 to my fluxinitrc (im using flux 0.9) so when i start up it is connected. And then i just emelfm to it when i need it
try putting a semicolon (;) after the first command and before the second, keep it all on one line, should work
Another option (the recommended option) to adding the command to a startup file is to edit /etc/fstab.  Look for the the line concerning hda2 and change "noauto" to "auto".  If there's no "noauto" you should be able to just add "auto" to the options.
This will automatically mount the drive at boot time.
Note: this is pointless if you're not using HD install.

Next Page...
original here.