Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #1077

Re: System variables cleanup

Date 2011-11-27 21:55 +0000
From Matthew Phillips <spam2011m@yahoo.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: System variables cleanup
Message-ID <63e5e63852.Matthew@sinenomine.freeserve.co.uk> (permalink)
References <a901803852.beeb@ron1954.woosh.co.nz>

Show all headers | View raw


In message <a901803852.beeb@ron1954.woosh.co.nz>
 on 27 Nov 2011 Ron  wrote:

> A recent post mentioned how Zap leaves System variables set and I
> think there are other apps doing this.
> It doesn't seem a correct thing to do, I think when you terminate
> a program it should remove it's system variables.

Unfortunately the programmer cannot read the mind of the user, and there is
no clear guidance from Acorn on this.

I guess you are mainly thinking about Alias$@RunType_ variables, which
control which applications are run when double-clicking on a file?

Some applications set these when being booted.  Some only set them if not
already set to something else, others just set anyway.  If you keep
application A and application B in the same directory and boot both, it all
depends on which is booted first and how they each behave as to which
application grabs the files.

And many programmers assume that if you run the application it's because you
like it and you would prefer to use it for the appropriate filetypes
thereafter, which is not unreasonable on the whole.

> If someone must use Zap not StrongED to view a text file upon clicking, the
> program can be started at boot time anyway.

Why should it have to be?  I like to keep my iconbar clear until these things
are needed.  A simpler solution is just not to install StrongED in the first
place!

> It is probably difficult to get all the programs changed to my suggested
> protocol, but maybe there has been a utility made that can check system
> variables against running programs and then remove them.

Tricky: you have to know what the system variables are all for, and who
really owns them.  I don't think this is really workable.

> Or perhaps if you wanted to run Zap and Stronged side by side and just drag
> files to the desired editor you might want to unset some of the variables.

Remember that Alias$@RunType_ does not apply to applications that are already
running.  Before the Filer invokes the run type information, a message is
broadcast round all applications which are already running asking if any
would like to handle the file.  System variables are not going to help with
this, as if NetSurf is running, say, there's no way Oregano will be loaded to
view the HTML file as NetSurf will handle it.

Again, the OS assumes that you'd prefer to use the application you've already
got loaded.  If you have two suitable applications loaded, it all depends on
what order the Wimp passes the message round in.

> I guess this is related to a System configuration where you tick your
> desired default browser etc, but needs to be accessible so things can be
> set straight at any time.

I think you'd be best off outlining the problem on the RISC OS Open Ltd
forums, in the Wishlist section.

I could envisage an improved Filer which would have a friendly way of
allowing the user to state his/her preferences for applications to handle
different sorts of files.  This could also control which applications are
polled first when broadcasting the message offering a file.  There's some
discussion on proposals for a new Filer going on right now so this may be the
time to get your suggestions in!

But include examples of real practical issues: what happens at present which
you dislike, so that folk can come up with the best way to fix it. Don't go
straight in suggesting a particular technical fix -- it may not be the best
design.

-- 
Matthew Phillips
Durham

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-27 16:11 +1300
  Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-27 05:13 +0100
    Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-27 18:29 +1300
  Re: System variables cleanup Matthew Phillips <spam2011m@yahoo.co.uk> - 2011-11-27 21:55 +0000
    Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-28 12:27 +1300
      Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-29 06:33 +0100
        Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-30 00:29 +1300
          Re: System variables cleanup Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-11-29 13:14 +0000
            Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-30 11:50 +1300
              Re: System variables cleanup Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-11-29 23:22 +0000
                Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-30 13:19 +1300
                Re: System variables cleanup Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-11-30 21:41 +0000
              Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-30 08:33 +0100
              Re: System variables cleanup Matthew Phillips <spam2011m@yahoo.co.uk> - 2011-11-30 21:38 +0000
                Re: System variables cleanup "David Holden" <SpamBin@apdl.co.uk> - 2011-12-01 08:20 +0000
              Re: System variables cleanup Vince M Hudd <vinceh@softrock.co.uk> - 2011-12-01 16:00 +0000
                Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-12-02 08:38 +0100
                Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-12-03 12:05 +1300
                Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-12-03 06:31 +0100
                Re: System variables cleanup Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-12-03 10:02 +0000
                Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-12-04 11:39 +1300
          Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-30 08:20 +0100
            Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-12-01 10:22 +1300
            Re: System variables cleanup Chris Johnson <chrisjohnson+news@spamcop.net> - 2011-11-30 23:59 +0000
              Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-12-01 07:21 +0100
        Re: System variables cleanup jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2011-12-01 14:15 +0000
          Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-12-02 08:35 +0100
  Re: System variables cleanup druck <news@druck.org.uk> - 2011-11-27 22:47 +0000
    Re: System variables cleanup druck <news@druck.org.uk> - 2011-11-30 20:19 +0000

csiph-web