Multiple desktop file
Martin Marmsoler
martin.marmsoler at gmail.com
Thu Mar 22 21:39:02 UTC 2018
Hello,
how can I pack multiple .desktop files into the flatpak package? I tried to
copy the files into /app/share/applications, but this was not enough. I had
to use the command "rename-desktop-file":
"net.carrotIndustries.horizon.horizon-pool-mgr.desktop", to rename one file
into the appid, but this is not what I want to do.
>From here I got the hint to copy them only without rename-desktop-file, but
it does not work: https://github.com/flatpak/flatpak/issues/750
The first one should named:
net.carrotIndustries.horizon.horizon-pool-mgr.desktop and the
second: net.carrotIndustries.horizon.horizon-prj-mgr.desktop
Best regards,
Martin
Here is my complete manifest:
{
"app-id": "net.carrotIndustries.horizon",
"runtime": "org.gnome.Platform",
"runtime-version": "3.26",
"sdk": "org.gnome.Sdk",
"command": "horizon-prj-mgr",
"finish-args": [
"--socket=wayland",
"--share=network",
"--device=dri",
"--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro",
"--talk-name=ca.desrt.dconf",
"--env=DCONF_USER_CONFIG_DIR=.config/dconf",
"--own-name=net.carrotIndustries.horizon.pool-mgr",
"--own-name=net.carrotIndustries.Horizon.prj-mgr",
"--filesystem=home"],
"rename-icon":"horizon-eda", /*Image will renamed to match the app-id
konvention*/
"rename-appdata-file": "horizon.appdata.xml",
"rename-desktop-file":
"net.carrotIndustries.horizon.horizon-pool-mgr.desktop",
"modules": [
"modules/gtkmm.json",
"modules/yaml_cpp.json",
"modules/boost.json",
"modules/cairomm.json",
"modules/pangomm.json",
"modules/gtkmm3.json",
"modules/glm.json",
"modules/lib-git2.json",
"modules/zeromq.json",
"modules/oce.json",
{
"name": "horizon",
"buildsystem": "cmake",
"no-make-install" : true,
"build-commands" : ["install -Dm755 bin/* /app/bin/"],
"sources": [
{
"type": "git",
"url": "https://github.com/Murmele/horizon.git",
"branch": "flatpak"
}
]
},
{
"name": "horizon-files",
"buildsystem": "simple",
"build-commands" : ["desktop-file-install --dir=/app/share/applications
ressources/linux/mime/applications/net.carrotIndustries.horizon.horizon-pool-mgr.desktop",
"desktop-file-install --dir=/app/share/applications
ressources/linux/mime/applications/net.carrotIndustries.horizon.horizon-prj-mgr.desktop",
"install -Dm755 ressources/linux/horizon.appdata.xml
/app/share/metainfo/horizon.appdata.xml",
"install -Dm755 src/icons/16x16/apps/horizon-eda.png
/app/share/icons/hicolor/16x16/apps/horizon-eda.png",
"install -Dm755 src/icons/32x32/apps/horizon-eda.png
/app/share/icons/hicolor/32x32/apps/horizon-eda.png",
"install -Dm755 src/icons/64x64/apps/horizon-eda.png
/app/share/icons/hicolor/64x64/apps/horizon-eda.png",
"install -Dm755 src/icons/256x256/apps/horizon-eda.png
/app/share/icons/hicolor/256x256/apps/horizon-eda.png",
"install -Dm755 src/icons/scalable/apps/horizon-eda.svg
/app/share/icons/hicolor/scalable/apps/horizon-eda.svg",
"install -Dm755 src/icons/scalable/actions/action-link-symbolic.svg
/app/share/icons/hicolor/scalable/actions/action-link-symbolic.svg",
"install -Dm755 src/icons/scalable/actions/action-unlink-symbolic.svg
/app/share/icons/hicolor/scalable/actions/action-unlink-symbolic.svg",
"install -Dm755 src/icons/scalable/actions/edit-board-symbolic.svg
/app/share/icons/hicolor/scalable/actions/edit-board-symbolic.svg",
"install -Dm755 src/icons/scalable/actions/edit-schematic-symbolic.svg
/app/share/icons/hicolor/scalable/actions/edit-schematic-symbolic.svg"],
"sources": [
{
"type": "git",
"url": "https://github.com/Murmele/horizon.git",
"branch": "flatpak"
}
]
}
]
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20180322/e5f0520c/attachment.html>
More information about the Flatpak
mailing list