2 |
3 | 
4 |
5 |
6 | [](https://appcenter.elementary.io/com.github.hezral.inspektor)
7 |
8 |

9 |
10 |
11 | ### Inspektor helps your to view file metadata easily in a window and export it to JSON, CSV or Text file format.
12 |
13 | |  |  |  |
14 | |------------------------------------------|-----------------------------------------|-----------------------------------------|
15 |
16 | |  |  |
17 | |------------------------------------------|-----------------------------------------|
18 |
19 | ## Installation
20 |
21 | ## Build using flatpak
22 | * requires that you have flatpak-builder installed
23 | * flatpak enabled
24 | * flathub remote enabled
25 |
26 | ```
27 | flatpak-builder --user --force-clean --install build-dir com.github.hezral.inspektor.yml
28 | ```
29 |
30 | ### Build using meson
31 | Ensure you have these dependencies installed
32 |
33 | * python3
34 | * python3-gi
35 | * libgranite-dev
36 | * python3
37 | * libgtk-3-dev
38 | * libimage-exiftool-perl
39 | * attr
40 |
41 | Download the updated source [here](https://github.com/hezral/inspektor/archive/master.zip), or use git:
42 | ```bash
43 | git clone https://github.com/hezral/inspektor.git
44 | cd inspektor
45 | meson build --prefix=/usr
46 | cd build
47 | ninja build
48 | sudo ninja install
49 | ```
50 | The desktop launcher should show up on the application launcher for your desktop environment
51 | if it doesn't, try running
52 | ```
53 | com.github.hezral.inspektor
54 | ```
55 |
56 | ## Thanks/Credits
57 | - [ExifTool by Phil Harvey](https://exiftool.org/) Won't work without it.
58 | - [Extended File Attribues in Linux](https://www.linuxtoday.com/blog/extended-file-attributes-rock.html) Gave me the idea.
59 | - [ElementaryPython](https://github.com/mirkobrombin/ElementaryPython) This started me off on coding with Python and GTK.
60 |
--------------------------------------------------------------------------------
/build-aux/meson/postinstall.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 |
3 | from os import environ, path
4 | from subprocess import call
5 |
6 | prefix = environ.get('MESON_INSTALL_PREFIX', '/usr/local')
7 | datadir = path.join(prefix, 'share')
8 | destdir = environ.get('DESTDIR', '')
9 |
10 | # Package managers set this so we don't need to run
11 | if not destdir:
12 | print('Updating icon cache...')
13 | call(['gtk-update-icon-cache', '-qtf', path.join(datadir, 'icons', 'hicolor')])
14 |
15 | print('Updating desktop database...')
16 | call(['update-desktop-database', '-q', path.join(datadir, 'applications')])
17 |
18 | print('Compiling GSettings schemas...')
19 | call(['glib-compile-schemas', path.join(datadir, 'glib-2.0', 'schemas')])
20 |
21 |
22 |
--------------------------------------------------------------------------------
/com.github.hezral.inspektor.yml:
--------------------------------------------------------------------------------
1 | app-id: com.github.hezral.inspektor
2 | runtime: io.elementary.Platform
3 | runtime-version: '6'
4 | sdk: io.elementary.Sdk
5 | command: com.github.hezral.inspektor
6 | finish-args:
7 | - --socket=wayland
8 | - --socket=fallback-x11
9 | - --socket=pulseaudio
10 | # access home diectory for inspecting files
11 | - --filesystem=home
12 | modules:
13 |
14 | - name: exiftool
15 | modules:
16 | - name: exiftool
17 | buildsystem: simple
18 | build-commands:
19 | - perl Makefile.PL
20 | - make install
21 | cleanup:
22 | - '*.pod'
23 | sources:
24 | - type: git
25 | url: https://github.com/exiftool/exiftool.git
26 | tag: '12.30'
27 | commit: 57f44297961839f40e70d682865c41828b7f71b5
28 | modules:
29 | - name: perl
30 | buildsystem: simple
31 | build-commands:
32 | - ./Configure -des -Dprefix=$FLATPAK_DEST -Dman1dir=none -Dman3dir=none
33 | - make
34 | - make install
35 | post-install:
36 | # Fix wrong permissions
37 | - chmod -R u+w $FLATPAK_DEST/lib/perl5
38 | cleanup:
39 | - /bin/corelist
40 | - /bin/cpan
41 | - /bin/enc2xs
42 | - /bin/encguess
43 | - /bin/h2ph
44 | - /bin/h2xs
45 | - /bin/instmodsh
46 | - /bin/json_pp
47 | - /bin/libnetcfg
48 | - /bin/perl5*
49 | - /bin/perlbug
50 | - /bin/perldoc
51 | - /bin/perlivp
52 | - /bin/perlthanks
53 | - /bin/piconv
54 | - /bin/pl2pm
55 | - /bin/pod2html
56 | - /bin/pod2man
57 | - /bin/pod2text
58 | - /bin/pod2usage
59 | - /bin/podchecker
60 | - /bin/prove
61 | - /bin/ptar
62 | - /bin/ptardiff
63 | - /bin/ptargrep
64 | - /bin/shasum
65 | - /bin/splain
66 | - /bin/streamzip
67 | - /bin/xsubpp
68 | - /bin/zipdetails
69 | - '*.pod'
70 | sources:
71 | - type: git
72 | url: https://github.com/Perl/perl5.git
73 | tag: v5.34.0
74 | commit: 79a7b254d85a10b65126ad99bf10e70480569d68
75 |
76 | - name: attr
77 | sources:
78 | - type: git
79 | url: https://git.savannah.nongnu.org/git/attr.git
80 |
81 | - name: opencv-python
82 | buildsystem: simple
83 | build-options:
84 | build-args:
85 | - --share=network
86 | build-commands:
87 | - "pip3 install --prefix=${FLATPAK_DEST} opencv-python"
88 |
89 | - name: inspektor
90 | buildsystem: meson
91 | sources:
92 | - type: dir
93 | path: .
--------------------------------------------------------------------------------
/data/action.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hezral/inspektor/08eb92982b4477d05a48fe04763ebb2b9f246c32/data/action.gif
--------------------------------------------------------------------------------
/data/application.css:
--------------------------------------------------------------------------------
1 | /*
2 | # Copyright 2020 Adi Hezral (hezral@gmail.com) (https://github.com/hezral)
3 | #
4 | # This file is part of QuickWord ("Application").
5 | #
6 | # The Application is free software: you can redistribute it and/or modify
7 | # it under the terms of the GNU General Public License as published by
8 | # the Free Software Foundation, either version 3 of the License, or
9 | # (at your option) any later version.
10 | #
11 | # The Application is distributed in the hope that it will be useful,
12 | # but WITHOUT ANY WARRANTY without even the implied warranty of
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | # GNU General Public License for more details.
15 | #
16 | # You should have received a copy of the GNU General Public License
17 | # along with this Application. If not, see