Creating Desktop and Nowhere

From OS2World.com Wiki
Jump to: navigation, search

There was some efforts to be able to create some OS/2 WPS classes like WPDesktop on boot time, to boot from OS/2 from a USB driver.

Here are some comments shared by Valerius to do that:

Desktop

To crate the desktop class on other location just change:

"PM_InstallObject" "Desktop;WPDesktop;@:\;PRESERVEOLD" "BACKGROUND=!:\os2\bitmap\forest.bmp,s,1;LOCKUPBACKGROUND=!:\os2\bitmap\plaster.bmp,t;ICONSHADOWCOLOR=182 182 182;TREESHADOWCOLOR=182 182 182;DETAILSSHADOWCOLOR=182 182 182;OBJECTID=<WP_DESKTOP>" "PM_InstallObject" ";WPFolder;@:\;UPDATEONLY" "TITLE=prev_desktop;OBJECTID=<WP_PREVIOUS_DESKTOP>;ICONVIEWPOS=RESET" "PM_InstallObject" ";WPShadow;<WP_DESKTOP>;PRESERVEOLD" "SHADOWID=<WP_PREVIOUS_DESKTOP>;ICONPOS=88 84;OBJECTID=<WP_PREVIOUS_DESKTOP_SHADOW>"

just change this in ini.rc to

"PM_InstallObject" "Desktop;WPFolder;@:\var\wps;DELETE" "TITLE=Desktop;" "PM_InstallObject" "Desktop;WPDesktop;@:\var\wps;UPDATE" "BACKGROUND=!:\os2\bitmap\forest.bmp,s,1;LOCKUPBACKGROUND=!:\os2\bitmap\plaster.bmp,t;ICONSHADOWCOLOR=182 182 182;TREESHADOWCOLOR=182 182 182;DETAILSSHADOWCOLOR=182 182 182;OBJECTID=<WP_DESKTOP>"

nowhere

For Nowhere change:

"PM_InstallObject" "Nowhere;WPVault;@:\;UPDATE" "OBJECTID=<WP_NOWHERE>"

to

"PM_InstallObject" "Nowhere;WPVault;@:\var\wps;UPDATE" "OBJECTID=<WP_NOWHERE>"