a per user setting Thread last updated on 2003-07-01 09:58:24

Posted by member 28701 on 2003-04-28 16:02:28

How do you make a per user setting in w2k?
Since the litestep .rc files are the same for whoever's logged in the settings i make there will be the same for every user on the box. Do I have to install litestep to a different directory per user?
/PvC

Posted by member 7223 on 2003-04-28 17:05:13 link

Store the config for each user in a file. Put this file in a "knowable" directory (C:\Document and settings\Administrator\My documents\Litestep). Do this for each users. Then, simply add this to your step.rc

Include "$DocumentsDir$Litestep\UserOnly.rc

Posted by member 99 on 2003-04-28 17:44:26 link

hm, is there a var for Application Data?

Posted by member 7223 on 2003-04-28 18:24:20 link

Josh, I don't know. But you could try this:

AppData "$StartMenu$..\Application Data"

Josh, have you take a look at http://www.litestep.net/index.php?section=4&action=view&catId=2&id=810

Posted by member 7 on 2003-04-29 01:35:59 link

There's a $username$ var. That means you could do
include "$litestepdir$$username$.rc"
or
include "$litestepdir$$username$\step.rc"
or something similar.

Posted by member 7223 on 2003-04-29 03:08:12 link

ilmcuts, of course, if you only need a single "per user" file, your solution is better than mine. But if you need to store many settings, then it's better to store all the "user only stuff" in a whole directory. Like I done it in my theme which is "multi-user" compliant:
http://www.litestep.net/index.php?section=2&action=details&id=83

That's why I put everything under "$DocumentsDir$Litestep\"

Posted by member 1 on 2003-04-29 03:30:41 link

so do $LiteStepDir$\$username$\step.rc...gggg....

Posted by member 28701 on 2003-04-29 04:06:22 link

Thanks for your help

Posted by member 7 on 2003-04-29 04:52:12 link

Smurth: the $username$.rc or $LiteStepDir$\$username$\step.rc can include as many files as you want...

Posted by member 7223 on 2003-04-29 05:04:31 link

I know, but in "$DocumentsDir$Litestep\", I use to store the "per user" wallpaper.bmp, Shortcuts.rc, DesktopArea.rc, OnRun.rc, PopupMain.rc, Settings.rc, Settings.mz, Step.mz and Modules.ini

Posted by member 99 on 2003-04-29 12:49:26 link

See, the reason I ask about Application Data is that My Documents isn't really the appropriate place to store this stuff. IMO it should be under $LiteStepDir$ or Application Data\LiteStep. (the second being more established)

And if you're gonna put it under $LiteStepDir$, you should probably have $LiteStepDir$Profiles\$username$\etc. instead. $LiteStepDir$$username$ would clutter things up and, unlikely as it may be, I wouldn't trust users to not have a username like "themes" or "modules."

Posted by member 7223 on 2003-04-29 20:50:16 link

Application Data\Litestep sounds good :)

Posted by member 2054 on 2003-05-21 22:19:38 link

using win2kpro i have c:\litestep\step.rc contain the following line:
include "c:\documents and settings\$username$\application data\litestep\step.rc"
and it will load different step.rcs per user. but now how do i get a different modules.ini per user? thanks

Posted by member 7 on 2003-05-22 04:19:27 link

You'll have to create a batch file or a script to copy it over. Or use modules that don't need modules.ini. :p
By the way, Litestep allows you to use windows %vars% as $evars$... that means you can just do
include "$AppData$\litestep\step.rc"

Posted by member 7223 on 2003-05-22 07:41:18 link

scar: use filemaster.dll and make some scripts to:

on exit/recycle
- unload the modules that still use modules.ini
- copy modules.ini to "$AppData$\Litestep\modules.ini"

on startup:
- copy "$AppData$\Litestep\modules.ini" to "$LitestepDir$modules.ini"
- reload the modules that use it (don't load them with the regular LoadModule)

Posted by member 1056 on 2003-06-30 20:09:48 link

if i do the things you people have suggested here, that means i cannot use lsts to change themes, right? i already tried to do all sortsa things to be able to use lsts with multiple user themes, but (among other things i discovered)lsts seems to expect the themes directory in the same folder that it is in.

hey, galois, how about multi-user support for lsts? :)

Posted by member 1316 on 2003-07-01 09:58:24 link

well, you could try putting a copy of lsts.exe into each user's folder. I don't know if that will work or not... you would then also need to change your popup to point to the new lsts.