• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    Quote:

    Ginger1 wrote:
    Hi all,

    I want to launch PolyOrga each time I boot, so it can play the role of a PIM more effectively.

    I have tried copying the program icon to WBStartup, which expectedly doesn't work (not seeing its various supporting files).

    I have also tried adding a line to user-startup:

    Code:
    Execute sys:applications/polyorga/orga

    But this doesn't work either. A quick look in an old AmigaDOS book suggests this is just for launching scripts. Run doesn't look quite either.

    What's the right way to do this?

    Thanks


    User-startup is for setting paths and assigns, and best kept clean of launching programs.

    The 'correct' way would be to copy its program icon to wbstartup (if dragging/dropping from ambient, switch to list view, and 'show all files' to access the icon (.info) file).
    You then need to view the icon information for the new file (the one in wbstartup) - set it to a 'project' icon type, and set the "default tool" path to point to the executable.

    It's also safe to use assigns in the paths, since programs are always launched from wbstartup afer startup-sequence & user-startup have returned.

    And yes, execute is for launching scripts (regardless of whether the script/executable flags are set).

    If the application/tool starts from the shell then a script can be used. The script is then given an icon (set to project, the 'script' and 'executable' flags are set, and c:iconx as default tool), and both script and icon are placed in wbstartup.

    One notable exception is where an application requires the network to be active before starting. In this case it may be best to use a script that waits for the network before launching the application, such as:

    Waitforport NETSTACK
    Run >NIL: path:to/your/executable

    (Whilst launching network-dependent applications can also be done from s:user-network-startup (which is executed at boot when the network stack starts), this script can run before user-startup, so it is not necessarily safe to rely on assigns here.)

    Best regards.

    PS - personally I think an "Add to WBStartup" macro should be a default context menu action for applications to automate the simple case. Fairly useless day-to-day, but perhaps helpful for new users.

    [ Edited by boot_wb 12.10.2016 - 00:47 ]
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »08.10.16 - 19:16
    Profile Visit Website