integrate

package
v0.0.0-...-4f60042 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppDir

func AppDir() string

func CreatePathWrapper

func CreatePathWrapper(name, appimgpath string) error

creates a shell script that wraps the AppImage in path

func DesktopFilePath

func DesktopFilePath(ai *appimage.AppImage) string

func FindImageById

func FindImageById(id appimage.AppImageID) (path string, found bool, err error)

func FindImageByName

func FindImageByName(name string) (path string, found bool, err error)

FindImageByName scans images for the name the user deals with case insensitive

func IconPath

func IconPath(ai *appimage.AppImage) string

func Install

func Install(appImagePath, optionalNewPath string) (newPath string, err error)

Install installs the AppImage specified at appImagePath. the original file is left untouched. Optionally optionalNewPath may specify where. If an empty string is supplied, the new path will be figure out automatically

func Integrate

func Integrate(appimgPath string) (err error)

func IsIntegrated

func IsIntegrated(ai *appimage.AppImage) bool

func IsPathWrapper

func IsPathWrapper(path string) bool

func List

func List() (list []string, nNotAppImage int)

func MoveToApplications

func MoveToApplications(appImagePath string, newPath string, replace bool) (retNewPath string, err error)

newPath may be an empty string, in that case MoveToApplications will decide this itself

func RemovePathWrapper

func RemovePathWrapper(name string) error

checks if file is a path wrapper and deletes it if so

func Unintegrate

func Unintegrate(appimgPath string) error

func Upgrade

func Upgrade(appImagePath, optionalNewPath string) (newPath string, err error)

Upgrade installs the AppImage specified at appImagePath, replacing any existing file. and moving the specified appimage to the appropriate location Optionally optionalNewPath may specify where. If an empty string is supplied, the new path will be figure out automatically

Types

type PathWrapperEntry

type PathWrapperEntry struct {
	WrapperPath  string
	WrapperName  string
	AppImagePath string
}

func ListPathWrappers

func ListPathWrappers() (paths []PathWrapperEntry)

func PathWrappersForAppImage

func PathWrappersForAppImage(path string) []PathWrapperEntry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL