Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAppImagesWithMatchingUpdateInformation ¶
FindAppImagesWithMatchingUpdateInformation finds registered AppImages that have matching upate information embedded
func FindMostRecentAppImageWithMatchingUpdateInformation ¶
FindMostRecentAppImageWithMatchingUpdateInformation finds the most recent registered AppImage that havs matching upate information embedded
func LaunchMostRecentAppImage ¶
LaunchMostRecentAppImage launches an the most recent application for a given updateinformation that we found among the integrated AppImages. Kinda like poor man's Launch Services. Probably we should make as much use of it as possible. Downside: Applications without updateinformation cannot be used in this way.
Types ¶
type AppImage ¶
type AppImage struct { Path string ImageType int URI string Md5 string DesktopFilename string DesktopFilepath string ThumbnailFilename string ThumbnailFilepath string Offset int64 RawContents string UpdateInformation string NiceName string }
AppImage handles AppImage files. Currently it is using using a static build of mksquashfs/unsquashfs but eventually may be rewritten to do things natively in Go
func NewAppImage ¶
NewAppImage creates an AppImage object from the location defined by path. The AppImage object will also be created if path does not exist, because the AppImage that used to be there may need to be removed and for this the functions of an AppImage are needed. Non-existing and invalid AppImages will have type -1.
func (AppImage) DiscoverContents ¶ added in v0.1.1
DiscoverContents Fills rawcontents with the raw output of our extraction tools, libarchive and unsquashfs. This is a slow operation and should hence only be done once we are sure that we really need this information. Maybe we should consider to have a fixed directory inside the AppDir for everything that should be extracted, or a MANIFEST file. That would save us this slow work at runtime
func (AppImage) ExtractFile ¶
ExtractFile extracts a file from from filepath (which may contain * wildcards) in an AppImage to the destinationdirpath. Returns err in case of errors, or nil. TODO: resolve symlinks TODO: Should this be a io.Reader()?
func (AppImage) ReadUpdateInformation ¶
ReadUpdateInformation reads updateinformation from an AppImage Returns updateinformation string and error