Compare commits

...

3 Commits

Author SHA1 Message Date
b0de0e09bd
Add a screenshot to the README 2022-01-06 12:43:27 +01:00
077747f428
Improve desktop file regeneration 2022-01-06 11:44:01 +01:00
3ae22e49ee
Make sure our info-symbolic is actually used
The previous placement was ultra-fallbacky, "info" was picked instead.
2022-01-06 10:13:10 +01:00
4 changed files with 21 additions and 14 deletions

View File

@ -8,6 +8,8 @@ or whatever gdk-pixbuf loads.
Its development status can be summarized as '`beta`'.
E.g., certain GIFs animate wrong.
image::fiv.webp["Screenshot of both the browser and the viewer"]
Non-goals
---------
- fancy UI--the focus is on speed of use first, colour accuracy second

BIN
fiv.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

View File

@ -83,20 +83,25 @@ if gdkpixbuf.found()
dependencies : [dependencies, gdkpixbuf])
endif
install_data('fiv.desktop',
install_dir : get_option('datadir') + '/applications')
# XXX: With gdk-pixbuf, this even dependens on currently installed modules.
if meson.is_cross_build()
install_data('fiv.desktop',
install_dir : get_option('datadir') + '/applications')
else
# XXX: The exe path may not contain spaces--quoting is a bitch in Meson.
desktop = custom_target('desktop',
output : 'fiv.desktop',
input : 'fiv.desktop',
command : ['sh', '-c', '''awk '/^MimeType=/ { $0 = "MimeType=";
while ((exe " --list-supported-media-types" | getline type) > 0)
$0 = $0 type ";" } 1' "exe=$1" "$2"''', 'sh', exe, '@INPUT@'],
capture : true,
install : true,
install_dir : get_option('datadir') + '/applications',
)
endif
install_data('fiv-browse.desktop',
install_dir : get_option('datadir') + '/applications')
install_data('fiv.svg',
install_dir : get_option('datadir') + '/icons/hicolor/scalable/apps')
# TODO(p): Replace this with custom_target().
if not meson.is_cross_build()
meson.add_install_script(
'sh', '-c', '''sed -i "/^MimeType=/{c \\
MimeType=$($1 --list-supported-media-types | tr "\\012" ";")
}" "$MESON_INSTALL_DESTDIR_PREFIX/$2"''',
'sh',
exe.full_path(),
get_option('datadir') + '/applications/fiv.desktop')
endif

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/design/IconLibrary/">
<gresource prefix="/org/gnome/design/IconLibrary/scalable/actions/">
<file preprocess="xml-stripblanks">circle-filled-symbolic.svg</file>
<file preprocess="xml-stripblanks">funnel-symbolic.svg</file>
<file preprocess="xml-stripblanks">blend-tool-symbolic.svg</file>