On Wed, Sep 01, 2004 at 12:44:52AM +0200, Thomas Prokosch wrote: > Package: joe > Version: 3.1-0.2 > Severity: normal > > Using update-alternatives to set the default editor lists not only joe but > also its alternatives jmacs, jpico and so on. However selecting one of > these personalities always presents the user with the bare joe, which is > understandable from a programmer's point of view (the joe binary itself > does not know about the symlinks in /etc/alternatives) but is confusing > for the user. > > Therefore it would be nice if these alternatives were wrapper scripts > which called joe with the appropriate personality explicitly set. (The > most basic solution would probably be creating wrapper scripts called > joe-wrapper-jmacs, joe-wrapper-jpico and so on, and registering *them* to > the update-alternatives mechanism.)
The program recognizes "which one it is" by the name of the calling binary, and reads the configuration file /etc/joe/<name>rc. This in turn expands to /etc/joe/editorrc in your situation, because the alternative for the default editor is called "editor". Notice this: % ls -l /etc/joe/editorrc lrwxrwxrwx 1 root root 5 2005-09-07 14:13 /etc/joe/editorrc -> joerc We can't integrate that link with 'update-alternatives --config editor', but you can adjust it yourself and pick the desired version that way. Is this a satisfactory solution for your problem? -- 2. That which causes joy or happiness. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]