Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autostart.sh doesn't work #48

Open
Mawfyy opened this issue Oct 9, 2022 · 3 comments
Open

autostart.sh doesn't work #48

Mawfyy opened this issue Oct 9, 2022 · 3 comments

Comments

@Mawfyy
Copy link

Mawfyy commented Oct 9, 2022

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

@noe1sanji
Copy link

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

@cesarblender
Copy link
Contributor

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

@cesarblender
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants