Sun Nov 03, 2013 5:51 pm
if ls (/)etc/rc*.d|grep kdm-trinity|grep ^S ; then
dm="kdm-trinity"
else
# is official kde (4x) KDM
dm="kdm"
fi
Sun Nov 03, 2013 7:36 pm
fsmithred wrote:@raymerjacque: Could you post the ouput of this command for me, please? That way, I can see what processes are actually running when you're on the desktop.Thanks.
- Code:
ps ax |grep mdm
@dzz: Thanks, that looks much better.
[email protected]:~$ ps ax |grep mdm
3176 ? Ss 0:00 /usr/sbin/mdm
3177 ? S 0:02 /usr/sbin/mdm
3200 tty7 Ss+ 341:15 /usr/bin/X :0 -audit 0 -auth /var/lib/mdm/:0.Xauth -nolisten tcp vt7
7570 pts/0 S+ 0:00 grep mdm
Mon Nov 04, 2013 2:06 pm
Mon Nov 04, 2013 9:09 pm
Just to be clear - there is no (/)etc/init.d/tdm? I like the 'sysv-rc-conf --list' but I'd rather avoid it so the script works in cases where that's not installed. The change-username script can be used at any time to change any user's name and home, not just for installation
ps ax|grep -v grep|grep /opt/trinity/bin/kdm
ls (/)etc/rc*.d|grep kdm-trinity|grep ^S
pgrep -lf "/opt/trinity/bin/kdm"
Tue Nov 05, 2013 3:49 am
init 1
# This one gives error message for each missing file.
dm_list=$(ls (/)etc/init.d/{gdm,kdm,lightdm,gdm3} 2>/dev/null)
select display_manager in "$dm_list"; do
#"$display_manager" restart
echo "$display_manager"
break
done
Tue Nov 05, 2013 4:27 am
Tue Nov 05, 2013 4:50 am