Pārlūkot izejas kodu

change way to run x

pull/1/head
10sr pirms 12 gadiem
vecāks
revīzija
8dbe89fd4e
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      bashrc

+ 2
- 1
bashrc Parādīt failu

@@ -108,6 +108,7 @@ alias p="$PAGER"
alias c=cat
alias pcalc="python -i -c 'from math import *' "
alias py3=python3
alias py2=python2
alias _reloadrc="test -f ~/.bashrc && source ~/.bashrc"
alias sudo="sudo " # use aliases through sudo
alias e3=e3em
@@ -166,7 +167,7 @@ showinfo(){

x(){
if [[ -z $DISPLAY ]] && ! [[ -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
exec nohup startx # >~/.backup/log/xorg.log 2>&1 &
nohup startx # >~/.backup/log/xorg.log 2>&1 &
else
echo "X cant be started! Maybe another X is already running!" 1>&2
fi


Notiek ielāde…
Atcelt
Saglabāt