You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: markdown/configuration.md
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -10,24 +10,27 @@ nautilus -q
10
10
#start it again, you can also use the normal launcher.
11
11
nohup nautilus &disown
12
12
```
13
-
## 3.1 Automatic updates
13
+
## Automatic updates
14
14
Automatic updates are only working in the home dictionary. If you've installed the script at the system-wide location, you may turn off automatic updates.
15
15
<br/><br/>To <b>turn off automatic updates</b>, open the config file with a text editor and set the `automaticUpdates` variable to 'false'.
16
16
To <b>manually trigger a self-update</b>, just open the .py file with a text editor and change the value of the `converterVersion` variable.
17
17
To turn off the <b>update pop-up</b>, open the config file with a text editor and set the `showPatchNotes` variable to 'false'.
18
18
19
-
## 3.2 Shown menu items
20
-
To turn off the <b>patch note button</b> in the context menu, open the config file with a text editor and set the `showPatchNoteButton` variable to 'false'.
21
-
<br/><br/>To turn off the <b>Configure NFC43 button</b> in the context menu, open the config file with a text editor and set the `showConfigHint` variable to 'false'.
22
-
Note: This option is not available in Nemo so far.
19
+
## Shown menu items
20
+
To turn off the <b>patch note button</b> in the context menu and the <b>version number</b> in the adaption window, open the config file with a text editor and set the `showPatchNoteButton` variable to 'false'.
21
+
<br/><br/>To turn off the <b>Configure NFC43 button</b> in the context menu and the <b>config hint</b> in the adaption window, open the config file with a text editor and set the `showConfigHint` variable to 'false'.
23
22
<br/><br/>To turn off the '<b>convert to square</b>' option, open the config file with a text editor and set the `convertToSquares` variable to 'false'.
24
23
<br/><br/>To turn off the '<b>convert to wallpaper</b>' function, open the config file with a text editor and set the `convertToWallpapers` variable to 'false'.
25
24
26
-
## 3.3 Other options
25
+
## Other options
27
26
<br/>To turn off the <b>Double script installation Warning</b>, open the config file with a text editor and set the `checkForDoubleInstallation` variable to 'false'.
28
27
Note: This option may be a bit buggy in Nemo, I'll fix it in the future if it appears to be annoying to some users.
29
28
<br/>To turn off the __addition of timestamps__ to filenames, open the config file with a text editor and set the `timeInNames` variable to ‘false’.
30
29
30
+
## Adaption specific options (Nemo)
31
+
<br/>To enable the conversion of <b>application/octet-stream</b> files in the adaption version, set the `convertFromOctetStream` option to 'true'. This may allow you to convert files with unmatching mimetypes, which are in a supported- but not as such detected format. This may also allow the context menu option for other un-convertabe files, such a pdf or zip.
32
+
<br/>To disable the <b>"-" option</b> in the dropdown-list, set the `showDummyOption` setting to 'false'.
Copy file name to clipboardExpand all lines: nautilus-fileconverter.py
+41-20Lines changed: 41 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
#! /usr/bin/python3 -OOt
2
2
3
3
# --- Version number ---
4
-
converterVersion="001002009"# Change the number if you want to trigger an update.
4
+
converterVersion="001002010"# Change the number if you want to trigger an update.
5
5
6
6
# --- Imports ---
7
7
importgi
@@ -73,15 +73,17 @@
73
73
print(f"WARNING(Nautilus-file-converter)(004): No permission to write configuration file; \"{currentPath}\" is not writeable. View https://github.com/Lich-Corals/linux-file-converter-addon/blob/main/markdown/errors-and-warnings.md for more information.")
74
74
75
75
# --- Set default configs ---
76
-
_configPreset= { # These are the pre-defined default settings; edit NFC43-Config.json if the program is installed in your home dictionary.
77
-
"automaticUpdates": True, # Replace the "True" with "False" if you don't want automatic updates.
78
-
"showPatchNotes": True, # Replace the "True" with "False" if you don't want to see patch notes.
79
-
"showPatchNoteButton": True, # Replace the "True" with "False" if you don't want the "View patch notes" button in the converter menu.
80
-
"showConfigHint": True, # Replace the "True" with "False" if you don't want to see the config hint.
81
-
"convertToSquares": True, # Replace the "True" with "False" if you don't want to convert to square formats.
82
-
"convertToWallpapers": True, # Replace the "True" with "False" if you don't want to convert to wallpaper formats.
83
-
"checkForDoubleInstallation": True, # Replace the "True" with "False" if you don't the script to check if there is a second installation in another dictionary.
84
-
"timeInNames": True# Replace the "True" with "False" if you don't want the script to rename the files to contain a timestamp.
76
+
_configPreset= { # These are the pre-defined default settings; edit NFC43-Config.json if the program has permission to write.
77
+
"automaticUpdates": True,
78
+
"showPatchNotes": True,
79
+
"showPatchNoteButton": True,
80
+
"showConfigHint": True,
81
+
"convertToSquares": True,
82
+
"convertToWallpapers": True,
83
+
"checkForDoubleInstallation": True,
84
+
"timeInNames": True,
85
+
"convertFromOctetStream": False,
86
+
"showDummyOption": True
85
87
}
86
88
87
89
# --- Load or store configs json ---
@@ -143,7 +145,6 @@
143
145
'video/fli',
144
146
'image/vnd.fpx',
145
147
'image/vnd.net-fpx',
146
-
# 'application/octet-stream', <-- Didn't make any problems in nautilus, but Nemo takes all files in it (.zip, .doc, .pdf, etc.) instead of only the image types.
configHint.set_markup(f"""<span size="x-small">View <a href="https://github.com/Lich-Corals/linux-file-converter-addon/blob/main/markdown/configuration.md">the config documentation</a>\nto configure the script and hide this text.</span>""")
0 commit comments