Skip to content

Commit 4360790

Browse files
committed
Fix new build warnings.
1 parent fe7ff59 commit 4360790

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

data/meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ mimeFile_translated = custom_target('nemo.xml',
6262
],
6363
install: true,
6464
install_dir: join_paths(get_option('datadir'), 'mime', 'packages'),
65-
build_always: true,
65+
build_by_default: true,
6666
)
6767

6868
################################################################################
6969
dataConf = configuration_data()
70+
dataConf.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
71+
7072
rootPolicyFile = configure_file(
7173
input : 'org.nemo.root.policy.in',
7274
output: 'org.nemo.root.policy',

data/org.nemo.root.policy.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<allow_inactive>no</allow_inactive>
1818
<allow_active>auth_admin_keep</allow_active>
1919
</defaults>
20-
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/nemo</annotate>
20+
<annotate key="org.freedesktop.policykit.exec.path">@bindir@/nemo</annotate>
2121
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
2222
</action>
2323

libnemo-extension/meson.build

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11

2+
nemo_i18n_header = [
3+
'nemo-extension-i18n.h'
4+
]
5+
26
nemo_extension_sources = [
37
gresources,
48
'nemo-column-provider.c',
59
'nemo-column.c',
610
'nemo-desktop-preferences.c',
7-
'nemo-extension-i18n.h',
811
'nemo-extension-private.h',
912
'nemo-file-info.c',
1013
'nemo-info-provider.c',
@@ -40,7 +43,7 @@ nemo_extension_incdir = include_directories('.')
4043
nemo_extension_deps = [ glib, gtk ]
4144

4245
nemo_extension_lib = shared_library('nemo-extension',
43-
nemo_extension_sources,
46+
nemo_extension_sources + nemo_i18n_header,
4447
dependencies: nemo_extension_deps,
4548
include_directories: [ rootInclude, ],
4649
install: true,

src/nemo-open-with-main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ main (int argc, char *argv[])
123123

124124
nemo_global_preferences_init ();
125125

126-
const gchar *uri, *basename;
127-
gchar *mime_type;
126+
const gchar *uri;
127+
gchar *mime_type, *basename;
128128

129129
uri = argv[1];
130130

0 commit comments

Comments
 (0)