antoniosarosi/dotfiles

autostart.sh doesn't work

Mawfyy opened this issue · 3 comments

also, i use chmod +x and it doesn't work

hello, I'm using this configuration without any problem, you can validate that /bin/sh is installed or you can run your applications by adding ~/.xprofile to the file

Can you share your ~/.config/qtile/autostart.sh and your ~/.config/qtile/config.py? I believe I can help you.

in the official Qtile documentation this is the way to create an autostart.sh

#!/bin/sh

# Your programs
# Example:
pidgin &
dropbox start &
import os
import subprocess

from libqtile import hook

@hook.subscribe.startup_once
def autostart():
    home = os.path.expanduser('~/.config/qtile/autostart.sh')
    subprocess.Popen([home])

Try changing this code block in your ~/.config/qtile/config.py

@hook.subscribe.startup_once
def autostart():
    subprocess.call([path.join(qtile_path, 'autostart.sh')])

to this

@hook.subscribe.startup_once
def autostart():
    home = os.path.expanduser('~/.config/qtile/autostart.sh')
    subprocess.Popen([home])