Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flameshot flatpak manifest #865

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
65 changes: 65 additions & 0 deletions org.dharkael.Flameshot.appdata.xml
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are not using the file in the manifest, so I assume upstream's one is used. Please contribute your changes there, if any.

<component type="desktop-application">
<id>org.dharkael.Flameshot</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later and ASL 2.0 and GPLv2 and LGPLv3 and Free Art</project_license>
<name>Flameshot</name>
<summary>Powerful and simple to use screenshot software</summary>

<description>
<p>
Powerful and simple to use screenshot software with built-in
editor with advanced features.
</p>
</description>

<launchable type="desktop-id">org.dharkael.Flameshot.desktop</launchable>

<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/lupoDharkael/flameshot/master/img/preview/usageStatic.png</image>
</screenshot>

<screenshot>
<image>https://raw.githubusercontent.com/lupoDharkael/flameshot/master/img/preview/animatedUsage.gif</image>
</screenshot>
</screenshots>

<url type="homepage">https://github.com/lupoDharkael/flameshot</url>
<update_contact>https://github.com/lupoDharkael</update_contact>
<developer_name>Alejandro Sirgo Rica and Contributors</developer_name>

<releases>
<release version="0.6.0" date="2018-08-17"/>
</releases>

<content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
<content_attribute id="violence-realistic">none</content_attribute>
<content_attribute id="violence-bloodshed">none</content_attribute>
<content_attribute id="violence-sexual">none</content_attribute>
<content_attribute id="violence-desecration">none</content_attribute>
<content_attribute id="violence-slavery">none</content_attribute>
<content_attribute id="violence-worship">none</content_attribute>
<content_attribute id="drugs-alcohol">none</content_attribute>
<content_attribute id="drugs-narcotics">none</content_attribute>
<content_attribute id="drugs-tobacco">none</content_attribute>
<content_attribute id="sex-nudity">none</content_attribute>
<content_attribute id="sex-themes">none</content_attribute>
<content_attribute id="sex-homosexuality">none</content_attribute>
<content_attribute id="sex-prostitution">none</content_attribute>
<content_attribute id="sex-adultery">none</content_attribute>
<content_attribute id="sex-appearance">none</content_attribute>
<content_attribute id="language-profanity">none</content_attribute>
<content_attribute id="language-humor">none</content_attribute>
<content_attribute id="language-discrimination">none</content_attribute>
<content_attribute id="social-chat">none</content_attribute>
<content_attribute id="social-info">none</content_attribute>
<content_attribute id="social-audio">none</content_attribute>
<content_attribute id="social-location">none</content_attribute>
<content_attribute id="social-contacts">none</content_attribute>
<content_attribute id="money-purchasing">none</content_attribute>
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
</component>
48 changes: 48 additions & 0 deletions org.dharkael.Flameshot.desktop
@@ -0,0 +1,48 @@
[Desktop Entry]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are not using the file in the manifest, so I assume upstream's one is used. Please contribute your changes there, if any.

Name=Flameshot
Name[zh_CN]=火焰截图
GenericName=Screenshot tool
GenericName[zh_CN]=屏幕截图工具
GenericName[pl]=Zrzuty ekranu
GenericName[fr]=Outil de capture d'écran
GenericName[ja]=スクリーンショットツール
GenericName[sr]=Снимач екрана
GenericName[uk]=Інструмент скриншотів
Comment=Powerful yet simple to use screenshot software.
Comment[zh_CN]=强大又易用的屏幕截图软件
Comment[pl]=Proste w użyciu narzędzie do zrzutów ekranu
Comment[fr]=Logiciel de capture d'écran puissant et simple d'utilisation.
Comment[ja]=パワフルで使いやすいスクリーンショットソフトウェア。
Comment[sr]=Једноставан, а моћан алат за снимање екрана
Comment[uk]=Потужний простий у використанні додаток для створення знімків екрану.
Keywords=flameshot;screenshot;capture;shutter;
Keywords[zh_CN]=flameshot;screenshot;capture;shutter;截图;屏幕;
Keywords[fr]=flameshot;capture d'écran;capter;shutter;
Keywords[ja]=flameshot;screenshot;capture;shutter;スクリーンショット;キャプチャー;
Exec=flameshot
Icon=flameshot
Terminal=false
Type=Application
Categories=Graphics;
StartupNotify=false
Actions=Configure;Capture;

[Desktop Action Configure]
Name=Configure
Name[zh_CN]=配置
Name[pl]=Konfiguruj
Name[fr]=Configurer
Name[ja]=設定
Name[sr]=Подешавања
Name[uk]=Налаштувати
Exec=flameshot config

[Desktop Action Capture]
Name=Take screenshot
Name[zh_CN]=进行截图
Name[pl]=Zrzut ekranu
Name[fr]=Prendre une capture d'écran
Name[ja]=スクリーンショットを撮る
Name[sr]=Сними екран
Name[uk]=Зробити знімок
Exec=flameshot gui --delay 500
31 changes: 31 additions & 0 deletions org.dharkael.Flameshot.yaml
@@ -0,0 +1,31 @@
app-id: org.dharkael.Flameshot
runtime: org.kde.Platform
runtime-version: '5.12'
sdk: org.kde.Sdk
command: flameshot
rename-icon: flameshot
rename-appdata-file: flameshot.appdata.xml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These renames should happen upstream too.

rename-desktop-file: flameshot.desktop
finish-args:
- --socket=wayland
- --socket=x11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not exactly sure but fallback-x11 probably implies --socket=x11.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed fallback-x11

- --share=ipc
- --device=dri
- --filesystem=host # write output files
- --filesystem=xdg-config/kdeglobals:ro # gives application access to kdeglobals
- --talk-name=com.canonical.AppMenu.Registrar # gives application access to dbus menu
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=org.freedesktop.Notifications
- --share=network
build-options:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such flags are being defined by runtime these days.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forgot to push it.

cflags: -O2
cxxflags: -O2

modules:

- name: flameshot
buildsystem: qmake
sources:
- type: git
url: https://github.com/lupoDharkael/flameshot.git
tag: v0.6.0