403Webshell
Server IP : 185.11.201.71  /  Your IP : 192.168.7.18
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : tech ( 1000)
PHP Version : 7.4.28
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/gnome-session/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/gnome-session/run-systemd-session
#!/bin/sh
set -e

# clean-up upstart env, if the last session was run with upstart
# without session systemd restart
unset UPSTART_SESSION
systemctl --user unset-environment UPSTART_SESSION

# some old Qt programs still check this long-deprecated env var
dbus-update-activation-environment --systemd GNOME_DESKTOP_SESSION_ID=this-is-deprecated

# stop any lingering active units from a previous session
systemctl --user stop graphical-session.target graphical-session-pre.target

# robustness: if the previous graphical session left some failed units,
# reset them so that they don't break this startup
for unit in $(systemctl --user --no-legend --state=failed list-units | cut -f1 -d' '); do
    if [ "$(systemctl --user show -p PartOf --value $unit)" = "graphical-session.target" ]; then
        systemctl --user reset-failed $unit
    fi
done

# FIXME: synthesize After=graphical-session-pre.target dependencies until this
# can be done declaratively (https://github.com/systemd/systemd/issues/3750)
# This could be a generator, but we don't want to penalize non-graphical logins
# with this.
systemctl --user list-unit-files --no-legend | while read unit status _; do
    [ "${unit%.service}" != "$unit" ] || continue
    [ "$status" != "$disabled" ] || continue
    if [ "$(systemctl --user show -p PartOf --value $unit)" = "graphical-session.target" ]; then
        mkdir -p "$XDG_RUNTIME_DIR/systemd/user/${unit}.d"
        printf '[Unit]\nAfter=graphical-session-pre.target\n' > "$XDG_RUNTIME_DIR/systemd/user/${unit}.d/graphical-session-pre.conf"
    fi
done
systemctl --user daemon-reload

systemctl --user start --wait "$1"

dbus-update-activation-environment --systemd GNOME_DESKTOP_SESSION_ID=

# Delay killing the X server until all graphical units stopped
systemctl --user stop graphical-session-pre.target

Youez - 2016 - github.com/yon3zu
LinuXploit