diff options
author | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-03-31 21:09:30 +0200 |
---|---|---|
committer | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-03-31 21:09:30 +0200 |
commit | 948a349bd91a344efc5dd0ddbde65d01bca7e3b5 (patch) | |
tree | d31d0d9f30cd83301b3ded11732754fe52a4d21c | |
parent | fix appimage creating a new profile folder on each launch; sanitize desktop f... (diff) | |
download | librewolf-linux-948a349bd91a344efc5dd0ddbde65d01bca7e3b5.tar.gz librewolf-linux-948a349bd91a344efc5dd0ddbde65d01bca7e3b5.tar.bz2 librewolf-linux-948a349bd91a344efc5dd0ddbde65d01bca7e3b5.zip |
add a .desktop file to flatpak build
-rwxr-xr-x | flatpak/build_flatpak.sh | 5 | ||||
-rw-r--r-- | flatpak/content/librewolf.desktop | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/flatpak/build_flatpak.sh b/flatpak/build_flatpak.sh index dc414e7..cc297e6 100755 --- a/flatpak/build_flatpak.sh +++ b/flatpak/build_flatpak.sh @@ -56,6 +56,11 @@ flatpak-builder --disable-rofiles-fuse --repo="$FLATPAK_REPO" "$_FLATPAK_BUILD_F # TODO: firefox uses files/share/appdata/ in their flatpak, but https://docs.flatpak.org/en/latest/conventions.html says otherwise. which is "more" correct? install -Dvm644 "$_FLATPAK_BUILD_SOURCE_FOLDER/librewolf/io.gitlab.LibreWolf.appdata.xml" "$_FLATPAK_BUILD_FOLDER/files/share/metainfo/io.gitlab.LibreWolf.appdata.xml" +# add .desktop file +install -Dvm644 "$_SCRIPT_FOLDER/content/librewolf.desktop" "$_FLATPAK_BUILD_FOLDER/files/share/application/librewolf.desktop" +# it's not clear if the above is sufficient; follow what mozilla does +install -Dvm644 "$_SCRIPT_FOLDER/content/librewolf.desktop" "$_FLATPAK_BUILD_FOLDER/export/share/application/librewolf.desktop" + # Build bundle printf "\nBuilding flatpak bundle\n"; flatpak build-bundle $FLATPAK_REPO $FLATPAK_BUNDLE io.gitlab.LibreWolf master; diff --git a/flatpak/content/librewolf.desktop b/flatpak/content/librewolf.desktop new file mode 100644 index 0000000..687bebc --- /dev/null +++ b/flatpak/content/librewolf.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=LibreWolf +Exec=librewolf %u +Icon=librewolf +Type=Application +MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall; +StartupWMClass=LibreWolf +Categories=Network;WebBrowser; +StartupNotify=true +Terminal=false +X-MultipleArgs=false +Keywords=Internet;WWW;Browser;Web;Explorer |