PDA

View Full Version : Run Miranda as another user (I mean, from another account)



cakira
18 Jul 2005, 5:08 AM
Hello!

At home I use Win XP and we have multiple Windows accounts. In order to give each user his own profile in miranda, I've created a mirandaboot.ini file with the following line, among other things:


ProfileDir="%APPDATA%\Miranda IM"

Sometimes I try to run my profile in Miranda from other users accont. Therefore, I right-click Miranda's icon, select "Run as...", fill my username and password and... voilĂ*! Miranda is opened. But it is not opened with my profile, it's opened with an empty profile instead.

Does someone know how to correct this?

P.S.: I'm sorry if someone has already asked that, but it's rather hard to figure out what words I should use for in a seach. I've tried "runas" and "run as", but it didn't work.

cakira
18 Jul 2005, 5:11 AM
P.S.: I'm sorry if someone has already asked that, but it's rather hard to figure out what words I should use for in a seach. I've tried "runas" and "run as", but it didn't work.

Well, now at least "runas" in a search returns something. :-)

cakira
20 Jul 2005, 4:16 AM
I think I've discovered the problem: it seems that the APPDATA variable is not set when I run an application as another user.

Probably, this problem is related to this one: Environment Variable May Not Expand %APPDATA% to the Application Folder (http://support.microsoft.com/default.aspx?scid=kb;en-us;329308&Product=winxp). Perhaps this approach would lead to a cleaner solution, but I did not try to find out more.

Even though APPDATA is not set, USERPROFILE is. Therefore, I've changed my mirandaboot.ini from:



ProfileDir="%APPDATA%\Miranda IM"

to


ProfileDir="%USERPROFILE%\Dados de aplicativos\Miranda IM"


Where "Dados de aplicativos" means "Application Data" (my windows is in Portuguese).

It seems to work now. Not 100%, but it seems usable.