Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add MimeType of Images to desktop file #725

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

Closed
antrrax opened this issue Oct 4, 2021 · 1 comment
Closed

Add MimeType of Images to desktop file #725

antrrax opened this issue Oct 4, 2021 · 1 comment
Assignees

Comments

@antrrax
Copy link
Contributor

antrrax commented Oct 4, 2021

Please add MimeType of images in the file 'org.ksnip.ksnip.desktop' in the root of the AppImage, under '[Desktop Entry]'

MimeType=image/bmp;image/gif;image/x-icon;image/jpeg;image/png;image/svg+xml;image/tiff;image/webp;

So Ksnip can automatically integrate into the context menu of image files.

[Desktop Entry]
Type=Application
Exec=ksnip
Icon=ksnip
Terminal=false
StartupNotify=false
Name=ksnip
GenericName=ksnip Screenshot Tool
Comment=Cross-platform screenshot tool that provides many annotation features for your screenshots.
Categories=Utility;
Actions=Area;LastArea;FullScreen;Window;

MimeType=image/bmp;image/gif;image/x-icon;image/jpeg;image/png;image/svg+xml;image/tiff;image/webp;

Comment[pt_BR]=Ferramenta de captura de tela de Cross-plataforma que fornece muitos recursos de anotação para suas capturas de tela.

X-AppImage-Version=1.10.0-continuous

[Desktop Action Area]
Exec=ksnip -r
Icon=ksnip
Name=Capture a rectangular area

[Desktop Action LastArea]
Exec=ksnip -l
Icon=ksnip
Name=Capture last selected rectangular area

[Desktop Action FullScreen]
Exec=ksnip -m
Icon=ksnip
Name=Capture a fullscreen

[Desktop Action Window]
Exec=ksnip -a
Icon=ksnip
Name=Capture the focused window

See how it looks with the AppImage changed like the .desktop file above:
59kJ71.md.png


Note:
And if possible add this function to all packaging versions, both windows and linux.

@DamirPorobic DamirPorobic changed the title Add MimeType of Images to AppImage Add MimeType of Images to desktop file Oct 6, 2021
@DamirPorobic DamirPorobic self-assigned this Oct 6, 2021
@DamirPorobic
Copy link
Member

Done, but I've changed the list to reflect what images can be opened as pixmap https://doc.qt.io/qt-5/qpixmap.html#reading-and-writing-image-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants