Giter Club home page Giter Club logo

Comments (6)

DavidStirling avatar DavidStirling commented on June 29, 2024

What is preventing this from running on Linux?

I developed and built it on Windows with a specific use-case in mind. As such it's not tested on Linux or macOS but could work. ImQuick's builds are made integrate with Windows, and I'm not familiar enough with Linux to know how to add the equivalent of "Open with" shortcuts. Nonetheless if that'd be feasible it may be worth expanding support.

I changed import TkinterDnD2 as tkDnD to import tkinterdnd2 as tkDnD (not sure why the case is different)

Aha! The tkDnD2 system wasn't available on PyPi when I started development. This should make it much easier to install going forwards, thanks for finding that.

With regards to the icon issues, I believe linux tk doesn't support .ico files (I may be wrong). We'd need to add a PNG version for that resource to work properly.

Please do make a note of any problems you encounter!

from imquick.

howff avatar howff commented on June 29, 2024

My suggestion would be:

  • put sudo apt install tkdnd into the Installation part of the document
  • change the import to import tkinterdnd2 as tkDnD (or put that in the except: part of a try import TkinterDnD2 as tkDnD)
  • wrap self.iconbitmap in a try: except so it doesn't crash if no icon found

That's enough to be able to advertise Linux compatibility.

The desktop integration can be partly handled by creating a .desktop file, but that's for another day/issue.

from imquick.

DavidStirling avatar DavidStirling commented on June 29, 2024

Thanks, looks like it can run on macOS too with some minor modifications. Would you be able to post a screenshot of how it looks on Linux?

from imquick.

howff avatar howff commented on June 29, 2024

imquick1

from imquick.

DavidStirling avatar DavidStirling commented on June 29, 2024

Thanks for that! Looks like the UI elements are behaving sensibly. I've made the macOS-linux-support branch with some modifications for this, would you be able to test it on your Linux machine?

from imquick.

howff avatar howff commented on June 29, 2024

Sorry for the delay. The instruction to pip install -e . doesn't work (no setup.py) but pip install -r requirements.txt worked. The program then worked (although you might still need to add sudo apt install tkdnd to the readme). However the info window complained

    self.iconbitmap(resource_directory(ICON_FILE))
  File "/usr/lib/python3.8/tkinter/__init__.py", line 2080, in wm_iconbitmap
    return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
_tkinter.TclError: bitmap "resources/ImQuick.png" not defined

Not sure why, because that file definitely exists.
If I remove the call to self.iconbitmap then it is ok.
The About window doesn't make that call anyway so I think it's not necessary for the Info window either.

from imquick.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.