| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
> There is one thing, that wasn't mentioned so far. The registry-approach > chains you to exactly one configuration set per application (well - > actually it's one per user on windows). There is no real way to store > different configuration sets in a registry. Erm, it's trivial to build that in. For instance, we use the concept of a site name, which allows multiple installations of the same product for different clients, completely separating all settings. C:\Program Files\OurCompany\Site\cust1\OurProduct C:\Program Files\OurCompany\Site\cust2\OurProduct In the registry, this translates to: HK(LM|CU)\Software\OurCompany\Site\cust1\OurProduct HK(LM|CU)\Software\OurCompany\Site\cust2\OurProduct Abstract an interface to your settings that takes care of discerning the site name and constructing the relevant QSettings object, and wallah, different configuration sets. Trent. -- [ signature omitted ]
> And if MS would pull there heads out of their arses and allow
> for true multi-user, where your cmd prompt could be easily switched
> to another user. And if the app required admin, it would simply
> make a win32 call saying get admin privs, where the user had to
> enter in the admin password.... Like unix can do...
C:\>runas /?
RUNAS USAGE:
RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
/user:<UserName> program
RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
/smartcard [/user:<UserName>] program
/noprofile specifies that the user's profile should not be
loaded.
This causes the application to load more quickly,
but
can cause some applications to malfunction.
/profile specifies that the user's profile should be loaded.
This is the default.
/env to use current environment instead of user's.
/netonly use if the credentials specified are for remote
access only.
/savecred to use credentials previously saved by the user.
This option is not available on Windows XP Home
Edition
and will be ignored.
/smartcard use if the credentials are to be supplied from a
smartcard.
/user <UserName> should be in form USER@DOMAIN or
DOMAIN\USER
program command line for EXE. See below for examples
Examples:
> runas /noprofile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc
%windir%\system32\dsa.msc"
> runas /env /user:user@xxxxxxxxxxxxxxxxxxxx "notepad \"my file.txt\""
NOTE: Enter user's password only when prompted.
NOTE: USER@DOMAIN is not compatible with /netonly.
NOTE: /profile is not compatible with /netonly.
--
[ signature omitted ]
On Thursday 29 June 2006 03:42 am, Daniel Walz wrote: > Mukesh K. Srivastava schrieb: > > [...] > > The query is - > > - Does Linux OS requires SYSTEM REGISTRY like win32 > > family of OS where SYSTEM REGISTRY can be done? > > - If YES, what are the steps to be taken care? > > - If NO, what forbids Linux to have SYSTEM REGISTRY? > > Hi all, > > what was not mentioned so far: > Linux has some sort of registry, so called X-resources. [...] Linux also has two separate implementations of the Windows registry that don't talk to each other: the one in Mono (the Microsoft.Win32.Registry and .RegistryKey classes) and the one in Wine (RegCreateKey() etc.). -- [ signature omitted ]
Attachment:
pgpuu4WslgGO8.pgp
Description: PGP signature
On Thu, Jul 06, David Lee Lambert wrote:
> On Thursday 29 June 2006 03:42 am, Daniel Walz wrote:
> > Mukesh K. Srivastava schrieb:
> > > [...]
> > > The query is -
> > > - Does Linux OS requires SYSTEM REGISTRY like win32
> > > family of OS where SYSTEM REGISTRY can be done?
> > > - If YES, what are the steps to be taken care?
> > > - If NO, what forbids Linux to have SYSTEM REGISTRY?
> >
> > Hi all,
> >
> > what was not mentioned so far:
> > Linux has some sort of registry, so called X-resources. [...]
>
> Linux also has two separate implementations of the Windows registry that don't
> talk to each other: the one in Mono (the Microsoft.Win32.Registry
> and .RegistryKey classes) and the one in Wine (RegCreateKey() etc.).
>
Linux is the operating system. Both Mono and Wine can be considered as
applications here.
host specific configuration should go to /etc in Linux, if the
distribution is LSB certified:
http://www.pathname.com/fhs/pub/fhs-2.3.html#ETCHOSTSPECIFICSYSTEMCONFIGURATION
Best,
Uwe
--
[ signature omitted ]