Skip to content

Commit b9a46f4

Browse files
committed
Add pcmanfm-qt integration
1 parent caffd1a commit b9a46f4

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PYTHON ?= python3
2424
build:
2525
make manpages -C doc
2626

27-
install-vm: install-service install-gnome install-kde4
27+
install-vm: install-service install-gnome install-kde4 install-pcmanfm-qt
2828

2929
install-service:
3030
make install -C doc
@@ -41,6 +41,10 @@ install-kde4:
4141
install -d $(DESTDIR)/usr/share/kde4/services
4242
install -m 0644 qvm-convert-pdf.desktop $(DESTDIR)/usr/share/kde4/services
4343

44+
install-pcmanfm-qt:
45+
install -d $(DESTDIR)/usr/share/file-manager/actions
46+
install -m 0644 qvm-convert-pdf-pcmanfm-qt.desktop $(DESTDIR)/usr/share/file-manager/actions
47+
4448
install-dom0:
4549
$(PYTHON) setup.py install -O1 --root $(DESTDIR)
4650
# not needed in dom0

debian/qubes-pdf-converter.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ usr/lib/qubes/qvm-convert-pdf.gnome
55
usr/share/nautilus-python/extensions
66
usr/share/nautilus-python/extensions/qvm_convert_pdf_nautilus.py
77
usr/share/kde4/services/qvm-convert-pdf.desktop
8+
usr/share/file-manager/actions/qvm-convert-pdf-pcmanfm-qt.desktop
89
usr/share/man/man1/qvm-convert-pdf.1.gz
910
usr/lib/python3/dist-packages/qubespdfconverter
1011
usr/lib/python3/dist-packages/qubespdfconverter-*.egg-info

qvm-convert-pdf-pcmanfm-qt.desktop

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Type=Action
3+
Name=Convert PDF in disposable qube
4+
Icon=gtk-convert
5+
Profiles=on_pdf;
6+
7+
[X-Action-Profile on_pdf]
8+
MimeTypes=application/pdf
9+
Exec=/usr/lib/qubes/qvm-actions.sh pdf %F

rpm_spec/qpdf-converter.spec.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ URL: http://www.qubes-os.org
3535

3636
BuildArch: noarch
3737
BuildRequires: make
38-
BuildRequires: pandoc
38+
BuildRequires: pandoc
3939
BuildRequires: python%{python3_pkgversion}-setuptools
4040
BuildRequires: python%{python3_pkgversion}-devel
4141
%if 0%{?is_opensuse}
@@ -67,6 +67,7 @@ The Qubes service for converting untrusted PDF files into trusted ones.
6767
rm -rf $RPM_BUILD_ROOT
6868
make install-service DESTDIR=$RPM_BUILD_ROOT PYTHON=%{__python3}
6969
make install-gnome DESTDIR=$RPM_BUILD_ROOT PYTHON=%{__python3}
70+
make install-pcmanfm-qt DESTDIR=$RPM_BUILD_ROOT PYTHON=%{__python3}
7071
%if !0%{?is_opensuse}
7172
make install-kde4 DESTDIR=$RPM_BUILD_ROOT PYTHON=%{__python3}
7273
%endif
@@ -81,6 +82,7 @@ rm -rf $RPM_BUILD_ROOT
8182
/usr/lib/qubes/qvm-convert-pdf.gnome
8283
/usr/bin/qvm-convert-pdf
8384
/usr/share/nautilus-python/extensions/qvm_convert_pdf_nautilus.py*
85+
/usr/share/file-manager/actions/qvm-convert-pdf-pcmanfm-qt.desktop
8486
%if !0%{?is_opensuse}
8587
/usr/share/kde4/services/qvm-convert-pdf.desktop
8688
%endif

0 commit comments

Comments
 (0)