< >
    首页

    appimagelauncher - 帮助 appimage 程序把自己加入启动菜单

    安装:go get -v gitee.com/rocket049/appimagelauncher

    只需在appimage程序中调用Create函数,就可以在~/.local/share/applications中为当前的 appimage 程序创建.desktop启动器,把自己加入启动菜单。如果程序不是以APPIMAGE格式打包的,本程序会返回一个error

    函数 func Create(desktopFile, iconFile string, force bool) error的参数:

    示例代码

    import "gitee.com/rocket049/appimagelauncher"
    
    appimagelauncher.Create("appimage-name.desktop", "icon-name.png", false)
    
    备案号:苏ICP备19034936号/ 苏ICP备19034936号-1/ 苏ICP备19034936号-2A    站长邮箱:fuhuizn@163.com   版权所有

    苏公网安备 32050702010684号

    Powered by MarkdownWeb