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

Pygrid keybinding doesn't work in a startup script #18

Open
owenthereal opened this issue Dec 13, 2019 · 3 comments
Open

Pygrid keybinding doesn't work in a startup script #18

owenthereal opened this issue Dec 13, 2019 · 3 comments

Comments

@owenthereal
Copy link

I have the following autostart script in ~/.config/autostart/pygrid.desktop:

cat ~/.config/autostart/pygrid.desktop 
[Desktop Entry]
Type=Application
Exec=/usr/bin/python3 /home/owen/code/pygrid/pygrid.py
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_CA]=Pygrid
Name=Pygrid
Comment[en_CA]=
Comment=

None of the keybindings work. But if I run ./pygrid.py in a terminal, everything works as expected. What do I miss?

@pkkid
Copy link
Owner

pkkid commented Dec 13, 2019

This should be fine. Maybe you can send the output of the call to a log file and see what it's saying. Change the exec line to the following to and see if there are error messages you can capture and fix.

Exec=/usr/bin/python3 /home/owen/code/pygrid/pygrid.py >> /home/owen/pygrid.log 2>&1

@rvega
Copy link

rvega commented Jul 15, 2020

Same issue here... The log file you suggested comes out empty.
As a workaround, I added the following line to ~/.profile but the .desktop file would be great because I would be able to launch it with the usual GUI tools.

/path/to/pygrid/pygrid.py &

@Delawen
Copy link

Delawen commented Oct 1, 2020

Same with me. The log is empty and the startup script doesn't work. But the .profile trick worked.

$ python3 --version
Python 3.7.3
$ python --version
Python 2.7.16
$ uname -a
Linux 4.19.0-11-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64 GNU/Linux

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

4 participants