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

A few errors in the email widget #369

Open
streetturtle opened this issue Jul 17, 2022 Discussed in #358 · 1 comment
Open

A few errors in the email widget #369

streetturtle opened this issue Jul 17, 2022 Discussed in #358 · 1 comment

Comments

@streetturtle
Copy link
Owner

Discussed in #358

Originally posted by Hamster-of-power June 25, 2022
Hi,
I am new to Github, so sorry, if this is not the "correct" way of reporting. There were a few errors that I would like to point out:

  1. It says
    email_icon:set_image(path_to_icons .. "/mail-mark-new.png")
    That, png does not exist. Maybe try
    email_icon:set_image(path_to_icons .. "/mail-message-new.png")?

  2. In the show_emails()function, you are using python. However, it requires python3. For python3, however, the print function of
    /home//.config/awesome/email-widget/read_unread_emails.py
    needs brackets in two places:
    line 10
    print("No messages found!")
    and line 16
    print("ERROR getting message", num)

Great program btw.

@Ryuno-Ki
Copy link
Contributor

Well, yes and no.

says Python. Depending on the OS that could be very well Python2 (thinking of Debian), even though it reached EOL.

I'd recommend to update the Shebang to python3 while fixing this.

Just from reading I can see some non-idiomatic bits as well. You might want to stop dealing with them entirely by using black or blue.

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

2 participants