Giter Club home page Giter Club logo

Comments (19)

probonopd avatar probonopd commented on September 23, 2024

If you mean Ubuntu, it's actually deb based ;-)

from irscrutinizer.

probonopd avatar probonopd commented on September 23, 2024

Why not an AppImage that runs on all distros?

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024
Why not an AppImage that runs on all distros?

This is really interesting. I would be very happy to see a test of this.

from irscrutinizer.

probonopd avatar probonopd commented on September 23, 2024

An AppImage can be found at
https://bintray.com/probono/AppImages/IrScrutinizer/view#files

It has been created using https://github.com/probonopd/AppImages/blob/master/recipes/irscrutinizer/Recipe

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

Very cool!!

There are some problems though: Most things using the java.awt.Desktop appears broken, like invoking the browser both on local files (Help->Program Documentation) and external URLS (Help -> Project home page). Related, I have a problem with bundling of JVM; possibly it would be a good idea to have one version with and one version without JVM.

The Maven build builds an appdir directory for Mac, it would be a better idea to start from this.

Will get back on this issue; my experiences with Fedora packing were not entirely positive... I really like the approach.

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

Just discovered a more fundamental problem:
x

(To reproduce: remove the props file $(HOME)/.config/IrScrutinizer/properties.xml and start twice.)
IrScrutinizer is not made for changing location of its configuration files.

from irscrutinizer.

probonopd avatar probonopd commented on September 23, 2024

What can I do regarding that?

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

After considerable struggling (see the commit), the two problems remains, both show-stoppers:

  • relocation
  • Browser invocations through java.awt.Desktop is broken, both for http-URLs and for local files.

from irscrutinizer.

probonopd avatar probonopd commented on September 23, 2024

Is it possible to change the code so that IrpProtocols.ini is referred to in relative rather than absolute terms?

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

#100.

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

Used feature branch: appimage.

Status:

  • relocation problem is solved.
  • Java desktop still non-operational. Also using xdg-open fails.
  • Due to different locations of lock directory, need to prefer the system's RXTX, Done:
    e97b62e

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

Solved! Test image

from irscrutinizer.

probonopd avatar probonopd commented on September 23, 2024

On a stock Ubuntu 16.04, I get /tmp/.mount_M1US8m/usr/bin/irscrutinizer: 5: /tmp/.mount_M1US8m/usr/bin/irscrutinizer: java: not found.

After sudo apt install default-jre I get:

/home/me/Downloads/IrScrutinizer-1.1.4snapshot-x86_32.64.AppImage /tmp/.mount_RfWmDz/usr/bin/irscrutinizer.wrapper
Property File /home/me/.config/IrScrutinizer/properties.xml not found, using builtin defaults.
[Warning] exportformats.xml:890:40: Include operation failed, reverting to fallback. Resource error reading file as XML (href='myexportformats.xml'). Reason: /tmp/.mount_RfWmDz/usr/share/irscrutinizer/myexportformats.xml (No such file or directory)

but it runs.

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

These messages are neither errors nor specific to the AppImage version.

Property File /home/me/.config/IrScrutinizer/properties.xml not found, using builtin defaults.

Means exactly what it sounds like, will not appear the second time (because then the parameters from the first session has been saved).

[Warning] exportformats.xml:890:40: Include operation failed, reverting to fallback. Resource error reading file as XML (href='myexportformats.xml'). Reason: /tmp/.mount_RfWmDz/usr/share/irscrutinizer/myexportformats.xml (No such file or directory)

See end of exportformats,xml. Unfortunately, despite of the <fallback/> element (blessing the non-existence of the to-be included file), this pesky warning remains, I might comment it out...

@probonopd : Any thoughts of the feasibility of a multi-platform appimage? Everything except for some appimage components are multiplatform...

from irscrutinizer.

probonopd avatar probonopd commented on September 23, 2024

Re. multiplatform please see AppImage/AppImageKit#130

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

Thanx, but my idea was one appimage that runs on several architectures (x86_64, i686, arm...). The quoted thead is about an AppImageKit that generates different Appimages, all of which run on exactly one architecture. Or did I misunderstand?

BTW, thanx for your support in the past!

from irscrutinizer.

probonopd avatar probonopd commented on September 23, 2024

Indeed. Having the same AppImage run on multiple architectures would require either FatELF coming into kernels, or we'd have to switch back to using a script in the header of the AppImage rather than a binary, which creates its whole own set of problems (editors trying to open AppImages and then crashing being the most obvious one). So I don't see a pragmatical way to make it happen anytime soon. Also, it could add bloat in many situations since we would have to ship the architecture-dependent contents of the AppImage for each architecture.

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

Ok, "90%" of the current Linux users are likely using x86_64 architectures anyhow...

Mainly for documentation: Many (most) current Linux distros requires the current user to be in the group "lock" for RXTX (and thus serial and "usb-serial" devices) to work, see this The Fedora rpm simply prohibits the user from running the program, which is of course unacceptable -- in particular for the user who do not care about serial access anyhow. Since there are so many unknowns here -- not only if the user needs it or not, but also the very locking mechanism used -- I think it is better not to address this problem at all. RXTX is sceduled for replacement (#20) anyhow.

from irscrutinizer.

bengtmartensson avatar bengtmartensson commented on September 23, 2024

Merged into the main branch, including CI travis integration!

Although "only" x86_64 is presently supported, I am closing this. If anyone wants to contribute x86_32 or ARM appimage builds, feel free to do so.

Again, much thanx to probonopd!

from irscrutinizer.

Related Issues (20)

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.