Ignore:
Timestamp:
11/06/13 08:16:57 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
9c27073
Parents:
999faef
Message:

Make sure that PCDM sets the USER and SHELL environment variables appropriately when starting up a user session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/pcdm-backend.cpp

    r577dd9b rb28c8d9  
    1212#include "pcbsd-utils.h" 
    1313 
    14 QStringList displaynameList,usernameList,homedirList,instXNameList,instXBinList,instXCommentList,instXIconList; 
     14QStringList displaynameList,usernameList,homedirList,usershellList,instXNameList,instXBinList,instXCommentList,instXIconList; 
    1515QString logFile; 
    1616QString saveX,saveUsername, lastUser, lastDE; 
     
    9191  if( i == -1 ){ i = displaynameList.indexOf(username); } 
    9292  return homedirList[i]; 
     93} 
     94 
     95QString Backend::getUserShell(QString username){ 
     96  int i = usernameList.indexOf(username); 
     97  if( i == -1 ){ i = displaynameList.indexOf(username); } 
     98  return usershellList[i];       
    9399} 
    94100 
     
    366372      displaynameList << uList[i].section(":",4,4).simplified(); 
    367373      homedirList << uList[i].section(":",5,5).simplified(); 
     374      usershellList << uList[i].section(":",6,6).simplified(); 
    368375    } 
    369376  } 
Note: See TracChangeset for help on using the changeset viewer.