dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

autostart.sh doesn't work

Open Mawfyy opened this issue 3 years ago • 3 comments

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

Mawfyy avatar Oct 09 '22 14:10 Mawfyy

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

noe1sanji avatar Oct 12 '22 09:10 noe1sanji

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

cesarblender avatar Dec 24 '22 00:12 cesarblender

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])

cesarblender avatar Dec 24 '22 00:12 cesarblender