Difference between revisions of "Modifier le fichier User-Startup"

From MorphOS Library

(Created page with "Retour sur la page principale")
 
 
Line 1: Line 1:
 
[[Page_principale|Retour sur la page principale]]
 
[[Page_principale|Retour sur la page principale]]
 +
 +
 +
''Author: Dave Crawford''
 +
 +
When considering how to utilize your MorphOS based system, you may determine that a little customization may go a long way.  In doing so, an example speaks volumes greater than any step by step tutorial. 
 +
 +
==An S:User-Startup Example==
 +
 +
 +
<pre>
 +
;user-startup example from http://www.morphzone.org
 +
 +
;Like a SHELL SCRIPT the user startup uses the SEMICOLON as a comment
 +
;Thus the entire line is skipped during startup
 +
 +
;User Assigns
 +
;These can be useful for keeping up with downloads, certain filetypes, etc
 +
;note that multiple assigns can go to the same directory
 +
;quotes are used here since directories may have spaces in the name
 +
assign DCC: "work:downloads"
 +
assign downloads: "work:downloads"
 +
assign sounds: "sys:sounds"
 +
assign movies: "work:mplayer/video"
 +
assign projects: "work:my projects"
 +
 +
;When installer adds something to the user-startup, it appears as below
 +
;BEGIN CLASSACT
 +
Assign >NIL: LIBS: SYS:Classes ADD
 +
;END CLASSACT
 +
 +
;Want a better ram icon?
 +
copy > NIL: SYS:S/RAM.info TO RAM:Disk.info
 +
; when using "> NIL:" the output is redirected (>) to oblivion (NIL:)
 +
;that is to say, no shell window will open during the startup
 +
 +
;The following is another installer based addition that shows an example
 +
;of how to use the "ADD" switch to an existing assign and how to use "Path"
 +
;BEGIN Blacks Editor
 +
Assign BED: Work:BED
 +
Assign REXX: Work:BED/Rexx ADD
 +
Path BED: ADD
 +
;END Blacks Editor
 +
 +
;The following is a partial entry from an old install of MUI
 +
;this shows how to use an if statement in the user-startup
 +
if exists MUI:Libs
 +
assign add LIBS: MUI:Libs
 +
endif
 +
 +
;NOTE Be careful when creating your own S:user-startup
 +
</pre>

Latest revision as of 21:53, 16 February 2016

Retour sur la page principale


Author: Dave Crawford

When considering how to utilize your MorphOS based system, you may determine that a little customization may go a long way. In doing so, an example speaks volumes greater than any step by step tutorial.

An S:User-Startup Example

;user-startup example from http://www.morphzone.org

;Like a SHELL SCRIPT the user startup uses the SEMICOLON as a comment
;Thus the entire line is skipped during startup

;User Assigns
;These can be useful for keeping up with downloads, certain filetypes, etc
;note that multiple assigns can go to the same directory
;quotes are used here since directories may have spaces in the name
assign DCC: "work:downloads"
assign downloads: "work:downloads"
assign sounds: "sys:sounds"
assign movies: "work:mplayer/video"
assign projects: "work:my projects"

;When installer adds something to the user-startup, it appears as below
;BEGIN CLASSACT
Assign >NIL: LIBS: SYS:Classes ADD
;END CLASSACT

;Want a better ram icon?
copy > NIL: SYS:S/RAM.info TO RAM:Disk.info
; when using "> NIL:" the output is redirected (>) to oblivion (NIL:)
;that is to say, no shell window will open during the startup

;The following is another installer based addition that shows an example
;of how to use the "ADD" switch to an existing assign and how to use "Path"
;BEGIN Blacks Editor
Assign BED: Work:BED
Assign REXX: Work:BED/Rexx ADD
Path BED: ADD
;END Blacks Editor

;The following is a partial entry from an old install of MUI
;this shows how to use an if statement in the user-startup
if exists MUI:Libs
assign add LIBS: MUI:Libs
endif

;NOTE Be careful when creating your own S:user-startup