Lines 187-205
Link Here
|
187 |
sub ACTION_postinstall { |
187 |
sub ACTION_postinstall { |
188 |
my $self = shift; |
188 |
my $self = shift; |
189 |
my $sharedir = $self->install_destination('share'); |
189 |
my $sharedir = $self->install_destination('share'); |
190 |
my $mimedir = File::Spec->catdir($sharedir, 'mime'); |
190 |
# my $mimedir = File::Spec->catdir($sharedir, 'mime'); |
191 |
my $icon = File::Spec->catfile($sharedir, 'pixmaps', 'zim.png'); |
191 |
# my $icon = File::Spec->catfile($sharedir, 'pixmaps', 'zim.png'); |
192 |
for ( |
192 |
# for ( |
193 |
['update-desktop-database'], |
193 |
# ['update-desktop-database'], |
194 |
['update-mime-database', $mimedir], |
194 |
# ['update-mime-database', $mimedir], |
195 |
# [qw{xdg-icon-resource install --context apps --size 64}, |
195 |
# # [qw{xdg-icon-resource install --context apps --size 64}, |
196 |
# $icon], |
196 |
# # $icon], |
197 |
[qw{xdg-icon-resource install --context mimetypes --size 64}, |
197 |
# [qw{xdg-icon-resource install --context mimetypes --size 64}, |
198 |
$icon, q{text-x-zim-notebook}], |
198 |
# $icon, q{text-x-zim-notebook}], |
199 |
) { |
199 |
# ) { |
200 |
print "Trying: @$_\n"; |
200 |
# print "Trying: @$_\n"; |
201 |
print system(@$_) == 0 ? "Ok\n\n" : "Failed\n\n" ; |
201 |
# print system(@$_) == 0 ? "Ok\n\n" : "Failed\n\n" ; |
202 |
} |
202 |
# } |
203 |
|
203 |
|
204 |
} |
204 |
} |
205 |
|
205 |
|