From: Thomas L. <ta...@le...> - 2000-09-06 11:32:43
|
On Tue, 5 Sep 2000, Tim Rowledge wrote: > Thomas Leonard <ta...@le...> is widely believed to have > written: > > Choose 'Set Run Action' from the menu. Drag an HTML file to Netscape :-) > OK, I finally got this to work and make some sense. It was a bit tricky > though- I had to try several times before it would work. > First, since I have netscape on my icon bar (usingthe wrpper you > provided) I thought it should work by selecting cvsbook.html, choose > Window->set run action and drag it to the netscape icon. No luck. > Then I tried doing it textually by typing netscape $1 in the text field; > no luck there either as it kept insisting that some other file was > selected, or that a file had to be highlighted. Eventually I got the > right combination, but it wasn't a simple as I suspect you intended it > to be! Oh. Hmm... the MIME system needs updating a bit anyway - no time like the present! Here's what I propose: - Move 'Set Run Action' to the File menu, as Ewan suggested. It works on a file and shouldn't be in the Window menu just 'cos it opens the minibuffer! - Give it a dialog rather than using the minibuffer and the standard window. - Make the user drag the application to the dialog, rather than the file to the application. This prevents problems like the above. It's also easier to implement ;-) The box should also allow entering a shell command somehow, like the current system. This shouldn't make it any slower, either: Current system: - Choose 'Set Run Action' (possibly on keyboard shortcut) - Drag to file application - Choose which action to set from the query box New system: - Choose 'Set Run Action' (possibly on keyboard shortcut) - Drag application to dialog - Click on one of the action buttons to set it Actually, I think the reason for the old system was that you couldn't drag applications from the panel. Now you can :-) > Do you have a collection of MIME-types/* files ready to use? It might be > nice to include a few more defaults than just text and ps files. Ideally, packages would add a default handler to /usr/share/Choices/MIME-types when they are installed (if there wasn't one already). In practise, a few more examples might be good, but this is probably up to the packagers... The existing actions are just there to make sure people can read the manual! > And now for some new questions:- > a) is there a way to set the text for icons on the iconbar? I added '</' > to my ~/Iconbar file and it successfully put an icon for theroot dir > there - but no text! Oops, fixed! It appears as a mount point though, which surprised me at first, although that's correct, of course! > b) in the MIME-types files I see you are using 'exec mumble'. Can I do > anything to make it cd to the directory containing the file mentioned in > $1 ? This would help a lot in making sure the right version of Squeak is > run when I d-click on a squeak.image file Something like this in the applications' AppRun files: #!/bin/bash if [ -n "$1" -a "$1" != "-" ]; then cd ${1%/*} fi exec prog "$@" All the wrappers should be updated where this is useful. Is this bash-only? It could go in the filer, but it's messy. For example, if you load something from a floppy then you can't unmount the floppy until the application quits! Therefore, I think this should just be a hack for now, for applications that need it... > c) any chance of making the old shift-close trick work to open the > parent directory? I see you have it in the window menu and yo uhave > that up-trianlge, but still... Depends on your window manager... I posted a thing for sawfish a while back ;-) > d) do you have any idea how to setup X (or enlightnement or whatever) to > mimic RISCOS's focus/bring-forward behaviour? Enlightentment doesn't do RISC OS's move-without-raising thing. Sawfish does this happily though, but isn't set up quite like RISC OS by default. Easy to change, if someone has time... Focussing can be set to click-to-focus in most WMs. > e) should I really be getting the enlightenment menu when I menu-click > on the screen backgournd? Shouldn't I be getting a pinboard menu? Ah. I think the middle button is reserved for the window manager in the GNOME spec. So, if the pinboard menu is on button-2 then you've got a problem. Should we make the menu always on button-3 for the pinboard? Otherwise, complain to the WM people ;-) Thomas Leonard -- tal197 at users.sourceforge.net The ROX desktop (free/GPL) : http://rox.sourceforge.net |