Chamar um script em ~ / .profile interrompe meu login

0

Eu fiz uma chamada para um script bash no meu ~/.profile .

O script executa um programa CLI para escurecer minha tela no login. No entanto, o Gnome não continua me registrando na minha área de trabalho padrão depois de executar o script.

Existe uma maneira de tornar o script ~/.profile chamado sem bloqueio? Fico feliz em fornecer mais detalhes que podem ajudá-lo a responder isso. Minha distro é Linux Mint.

Editar

Conteúdo de .profile.

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# Me
bash /home/eoin/repos/scripts/autostart.sh

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

E meu script /home/eoin/repos/scripts/autostart.sh :

#!/bin/bash
bash ~/repos/scripts/redshift/redshift.sh

Que por sua vez chama outro script :-P

#!/bin/bash
redshift -v
    
por eoinoc 19.02.2012 / 20:41

1 resposta

3

Contexto do script, por exemplo

# Me
bash /home/eoin/repos/scripts/autostart.sh &
    
por 19.02.2012 / 21:39