Fix to endes patch (Unitialized html_document.) and default to build flatpak
without images to work better on low resources computers.
This commit is contained in:
parent
5b49e51642
commit
a17f9c1f25
@ -1,3 +1,5 @@
|
||||
Sergiotarxz sergiotarxz@posteo.net Project leader and developer [Gitea](https://gitea.sergiotarxz.freemyip.com/sergiotarxz)
|
||||
Germe.db FOSSgerme.deb@tuta.io Author of the icon openmg.svg. [sr.ht](https://sr.ht/~germe-fur/)
|
||||
Endes endes@disroot.org Developer [Github](https://github.com/endes0)
|
||||
Sergiotarxz sergiotarxz@posteo.net Project leader and developer. [Gitea](https://gitea.sergiotarxz.freemyip.com/sergiotarxz)
|
||||
|
||||
Germe.db FOSSgerme.deb@tuta.io Designer and icons creator. [sr.ht](https://sr.ht/~germe-fur/)
|
||||
|
||||
Endes endes@disroot.org Developer. [Github](https://github.com/endes0)
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
## Installing the app.
|
||||
|
||||
First fine tune the options in `me.sergiotarxz.openmg.json` for
|
||||
meson you want to have, for example preview images, complete list is
|
||||
on `meson_options.txt`
|
||||
|
||||
```shell
|
||||
flatpak --user remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
|
||||
flatpak install org.gnome.Sdk//master
|
||||
|
@ -1,20 +0,0 @@
|
||||
|
||||
app-id: me.sergiotarxz.openmg
|
||||
runtime: org.gnome.Platform
|
||||
runtime-version: master
|
||||
sdk: org.gnome.Sdk
|
||||
sdk-version: master
|
||||
command: openmg
|
||||
finish-args:
|
||||
- "--share=ipc"
|
||||
- "--socket=x11"
|
||||
- "--socket=wayland"
|
||||
- "--socket=session-bus"
|
||||
- "--share=network"
|
||||
- "--device=dri"
|
||||
modules:
|
||||
- name: openmg
|
||||
buildsystem: meson
|
||||
sources:
|
||||
- type: dir
|
||||
path: .
|
13
meson.build
13
meson.build
@ -36,16 +36,21 @@ sources = [
|
||||
]
|
||||
|
||||
link_arguments = [
|
||||
'-ldl',
|
||||
'-lm'
|
||||
]
|
||||
|
||||
images_on_lists = get_option('images')
|
||||
is_windows = get_option('windows')
|
||||
|
||||
cArgs = ''
|
||||
if images_on_lists
|
||||
cArgs = cArgs + '-DLIST_IMAGES'
|
||||
if not is_windows
|
||||
link_arguments += ['-ldl']
|
||||
endif
|
||||
|
||||
cArgs = []
|
||||
if images_on_lists
|
||||
cArgs += ['-DLIST_IMAGES']
|
||||
endif
|
||||
|
||||
executable('openmg',
|
||||
sources,
|
||||
dependencies : openmgdeps,
|
||||
|
@ -1 +1,2 @@
|
||||
option('images', type : 'boolean', value : true)
|
||||
option('windows', type : 'boolean', value : false)
|
||||
|
@ -364,7 +364,7 @@ mg_backend_readmng_retrieve_manga_details (MgBackendReadmng *self,
|
||||
MgManga *manga) {
|
||||
MgUtilXML *xml_utils;
|
||||
|
||||
xmlDocPtr html_document;
|
||||
xmlDocPtr html_document = NULL;
|
||||
xmlNodePtr *movie_detail = NULL;
|
||||
xmlXPathObjectPtr xpath_result = NULL;
|
||||
xmlNodeSetPtr node_set = NULL;
|
||||
@ -409,7 +409,9 @@ cleanup_mg_backend_readmng_retrieve_manga_details:
|
||||
if (movie_detail) {
|
||||
g_free (movie_detail);
|
||||
}
|
||||
xmlFreeDoc(html_document);
|
||||
if (html_document) {
|
||||
xmlFreeDoc(html_document);
|
||||
}
|
||||
}
|
||||
|
||||
static GListStore *
|
||||
|
Loading…
Reference in New Issue
Block a user