Help with making flatpack qt app packging

Hi, I am trying to packg the CoreApps to Flatpack, i am able to build the app and all are runs fine. But here are some issues i am facing.

  1. the app saves the config files to var folder, i want them in real config folder in home. i added the "--filesystem=home", but nothing changed.

  2. also i want access to the user/shear folder. how to do that.

basically i want the flatpack app to act like a native app, i don't want file system restrictions.

{
    "app-id": "com.example.coregarage",
    "branch": "master",
    "build-options": {
        "no-debuginfo": true,
        "strip": true
    },
    "command": "coregarage",
    "finish-args": [
        "--share=ipc",
        "--socket=x11",
        "--socket=pulseaudio",
        "--share=network",
        "--socket=system-bus",
        "--device=dri",
        "--filesystem=home",
        "--own-name=com.example.coregarage"
    ],
    "modules": [
    	{
            "name": "libcprime",
            "no-autogen": true,
            "no-make-install": false,
            "no-parallel-make": false,
            "sources": [
	            {
                    "branch": "master",
                    "type": "git",
                    "url": "file:///home/asd/Pictures/libcprime/"
                },
                {
                    "commands": [
                        "qmake PREFIX=/app libcprime.pro",
    		            "make install"
                    ],
                    "dest-filename": "configure",
                    "type": "script"
                }
            ]
        },
        {
            "name": "coregarage",
            "build-options": {
                "env": {
                    "LD_LIBRARY_PATH": "/usr/lib/"
                }
            },
            "no-autogen": true,
            "no-make-install": false,
            "no-parallel-make": false,
            "sources": [
                {
                    "branch": "master",
                    "type": "git",
                    "url": "file:///home/asd/Pictures/coregarage/"
                },
                {
                    "commands": [
                        "qmake -config release PREFIX=/app \"LIBS+=-L/app/lib -lcprime\" coregarage.pro",
                        "make install"
                    ],
                    "dest-filename": "configure",
                    "type": "script"
                }
            ]
        }
    ],
    "runtime": "org.kde.Platform",
    "runtime-version": "5.12",
    "sdk": "org.kde.Sdk",
    "separate-locales": false
}

No one here?

More at KDE: Guidelines and HOWTOs/Flatpak

3 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by