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

This application does not start with keybiding #3707

roipoussiere opened this issue May 26, 2019 · 0 comments


None yet
3 participants
Copy link

commented May 26, 2019

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

I wrote a script that uses the PhotoImage method from Python Tkinter that has a really strange behavior with i3.

  • when launching it from command line, the application starts;
  • when launching it from i3 binding, the application does not start;
  • when commenting PhotoImage then launching it from i3 binding, the application starts.

Expected Behavior

The application should start when launched from i3 binding.

Reproduction Instructions

Write this to a (no requirements except Python 3):

import tkinter as tk

root = tk.Tk()
tk.Label(root, text='Hello World').pack()
# image = tk.PhotoImage(file='./assets/png/keyboard_key.png')
# tk.Label(root, image=image).pack()

Then add this to i3 config:

bindsym twosuperior exec --no-startup-id python path/to/

Then type the ² key: the application should start.

Now uncomment the 2 lines in the script: the application does not start.

I know it can be a bug related to Tkinter but I can't reproduce this bug without using i3 bindings, maybe you could help me to investigate.


  • OS: Manjaro Linux 18.0.4 Illyria
  • kernel: 4.19.42-1-MANJARO
  • i3 version: 4.16.1

i3 config

Tested with the default config file and just added the config line above.


With the default config and after a fresh restart:

note that on this log, my script is located at /home/nath/projets/ofi/

@i3 i3 deleted a comment from i3bot May 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.