-
Notifications
You must be signed in to change notification settings - Fork 1
/
pdf_to_djvu.nemo_action
executable file
·41 lines (33 loc) · 1.89 KB
/
pdf_to_djvu.nemo_action
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[Nemo Action]
# Standard tokens that can be used in the Name, Comment (tooltip) and Exec fields:
#
# %U - insert URI list of selection
# %F - insert path list of selection
# %P - insert path of parent (current) directory
# %f or %N (deprecated) - insert display name of first selected file
# %p - insert display name of parent directory
# %D - insert device path of file (i.e. /dev/sdb1)
# The name to show in the menu, locale supported with standard desktop spec.
Name=Convert to DJVU (600 dpi)
Name[fr]=Convertir en DJVU (600 dpi)
# Tool tip, locale supported (Appears in the status bar)
Comment=Use pdf2djvu command to convert PDF to DJVU (600 dpi)
Comment[fr]=Utilise pdf2djvu pour convert le fichier PDF en DJVU (600 dpi)
; Exec=bash -c "filename=\"%F\"; rm -f \"${filename%%.*}.mp3\"; lame -b 128 \"$filename\" \"${filename%%.*}.mp3\""
Exec=bash -c "in_filename=\"%F\"; out_filename=\"${in_filename%%.*}.djvu\"; rm -f \"$out_filename\"; pdf2djvu -o \"$out_filename\" -d 600 -j $(nproc) \"$in_filename\" "
EscapeSpaces=false
#Exec=echo "ffmpeg avconv -i %F -c:a pcm_s16le %P/son.wav"
# Icon name to use in the menu - must be a theme icon name
; Icon-Name=sound
# What type selection: [s]ingle, [m]ultiple, any, notnone, none (background click), or
# a number representing how many files must be selected to display.
Selection=single
# What mime-types to display on - this is an array, end with a semicolon
# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED *****
Mimetypes=application/pdf;
# Dependencies - program executables required for this action to work. Nemo will
# Search in the path for these program(s) and not display the action if any are missing.
# You can also supply an absolute path to a file (i.e. /usr/lib/gvfs/gvfsd-archive) to check
# instead of or in addition to an executable in the path.
# This is an array, separate entries with semi-colon, and terminate with a semicolon.
Dependencies=pdf2djvu;