docs: avoid dashes and simplify wording
This commit is contained in:
1 parent
29b3024dc1
commit
c80fff41d0
14 files changed
+79
-78
No files matched your search
@@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
## Style
|
## Style
|
||||||
|
|
||||||
Keep everything short — replies, explanations, comments, docs.
|
- Keep everything short: replies, explanations, comments, docs.
|
||||||
|
- Use simple English: short sentences, common words.
|
||||||
|
- Avoid em dashes (—). Do not just swap them for "-" either. Rewrite the sentence instead, for
|
||||||
|
example with a comma, a colon, brackets or two sentences.
|
||||||
|
|
||||||
## Commits
|
## Commits
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# bottles-opener - build and install
|
# bottles-opener: build and install
|
||||||
#
|
#
|
||||||
# Everything here is plain shell and one small Python script; "building" only
|
# Everything here is plain shell and one small Python script; "building" only
|
||||||
# means compiling the gettext catalogs and rendering the man page. Both targets
|
# means compiling the gettext catalogs and rendering the man page. Both targets
|
||||||
@@ -56,14 +56,14 @@ po/%.mo: po/%.po
|
|||||||
ifdef MSGFMT
|
ifdef MSGFMT
|
||||||
$(MSGFMT) --check --output-file=$@ $<
|
$(MSGFMT) --check --output-file=$@ $<
|
||||||
else
|
else
|
||||||
@echo "msgfmt not found - skipping $@"
|
@echo "msgfmt not found, skipping $@"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(MANPAGE): doc/bottles-opener.1.scd
|
$(MANPAGE): doc/bottles-opener.1.scd
|
||||||
ifdef SCDOC
|
ifdef SCDOC
|
||||||
$(SCDOC) < $< > $@
|
$(SCDOC) < $< > $@
|
||||||
else
|
else
|
||||||
@echo "scdoc not found - skipping $@"
|
@echo "scdoc not found, skipping $@"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Regenerates the template from the sources. The setting labels live in an
|
# Regenerates the template from the sources. The setting labels live in an
|
||||||
@@ -92,7 +92,7 @@ check:
|
|||||||
shellcheck -x -e SC1090,SC1091 src/bottles-opener $(LIBS); \
|
shellcheck -x -e SC1090,SC1091 src/bottles-opener $(LIBS); \
|
||||||
echo "ok shellcheck"; \
|
echo "ok shellcheck"; \
|
||||||
else \
|
else \
|
||||||
echo "shellcheck not found - skipped"; \
|
echo "shellcheck not found, skipped"; \
|
||||||
fi
|
fi
|
||||||
@if command -v msgfmt >/dev/null 2>&1; then \
|
@if command -v msgfmt >/dev/null 2>&1; then \
|
||||||
for l in $(LINGUAS); do msgfmt --check --output-file=/dev/null po/$$l.po && echo "ok po/$$l.po"; done; \
|
for l in $(LINGUAS); do msgfmt --check --output-file=/dev/null po/$$l.po && echo "ok po/$$l.po"; done; \
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<a href="https://ko-fi.com/felitendo">Ko-Fi</a>
|
<a href="https://ko-fi.com/felitendo">Ko-Fi</a>
|
||||||
</h5>
|
</h5>
|
||||||
|
|
||||||
You install FL Studio in Bottles, double-click your `.flp` and... your file manager asks what an `.flp` is. This tool reads which files your Windows programs registered in their bottle - the same list Windows uses - teaches your system those types, gives them the program's icons and hands the file over the way Explorer would. One command and your files _✨just open✨_ (like on windows).
|
You install FL Studio in Bottles, double-click your `.flp` and... your file manager asks what an `.flp` is. This tool reads which files your Windows programs registered in their bottle. That is the same list Windows uses. It teaches your system those types, gives them the program's icons and hands the file over the way Explorer would. One command and your files _✨just open✨_ (like on windows).
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ Press `[1]` and you're done. `[3]` lists every file type and lets you pick what
|
|||||||
.psd Photoshop · Adobe Open With
|
.psd Photoshop · Adobe Open With
|
||||||
```
|
```
|
||||||
|
|
||||||
`double-click` opens it. `Open With` only lists it in the right-click menu - that's what types get that already have an app on your system (`.docx` with LibreOffice), so nothing you picked gets taken away. Space switches.
|
`double-click` opens it. `Open With` only lists it in the right-click menu. Types that already have an app on your system get this (like `.docx` with LibreOffice), so nothing you picked gets taken away. Space switches.
|
||||||
|
|
||||||
`[4]` lists your programs; Enter edits their file types, so you can add any extension you like. Or without the menu:
|
`[4]` lists your programs; Enter edits their file types, so you can add any extension you like. Or without the menu:
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ bottles-opener add flp,fst "FL Studio"
|
|||||||
|
|
||||||
## How to install
|
## How to install
|
||||||
|
|
||||||
**Arch (for the cachyos enjoyers)**
|
**Arch**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yay -S bottles-opener
|
yay -S bottles-opener
|
||||||
|
|||||||
+15
-16
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: bottles-opener 0.1.0\n"
|
"Project-Id-Version: bottles-opener 0.1.0\n"
|
||||||
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/bottles-opener/issues\n"
|
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/bottles-opener/issues\n"
|
||||||
"POT-Creation-Date: 2026-09-21 11:30+0200\n"
|
"POT-Creation-Date: 2026-09-21 13:54+0200\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@@ -55,12 +55,12 @@ msgid "Already up to date for %s."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Bottles could not be read - is python3 with PyYAML installed? Nothing was "
|
"Bottles could not be read. Is python3 with PyYAML installed? Nothing was "
|
||||||
"changed."
|
"changed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Bottles is not installed - neither the package nor the Flatpak was found."
|
"Bottles is not installed. Neither the package nor the Flatpak was found."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Commands:"
|
msgid "Commands:"
|
||||||
@@ -82,10 +82,10 @@ msgstr ""
|
|||||||
msgid "File opening"
|
msgid "File opening"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "File opening is off - this is what it would do."
|
msgid "File opening is off and everything that was changed has been put back."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "File opening is off and everything that was changed has been put back."
|
msgid "File opening is off. This is what it would do."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "File opening is off. Turn it on first."
|
msgid "File opening is off. Turn it on first."
|
||||||
@@ -121,7 +121,7 @@ msgid "Looking at the bottles..."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, sh-printf-format
|
#, sh-printf-format
|
||||||
msgid "More than one program is called \"%s\" - name the bottle as well."
|
msgid "More than one program is called \"%s\". Name the bottle as well."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "New programs"
|
msgid "New programs"
|
||||||
@@ -152,12 +152,12 @@ msgid "No programs found in any bottle."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"No systemd user session - newly installed programs will not be picked up on "
|
"No systemd user session, so newly installed programs will not be picked up "
|
||||||
"their own."
|
"on their own."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, sh-printf-format
|
#, sh-printf-format
|
||||||
msgid "Not overwriting %s - it was not written by this program."
|
msgid "Not overwriting %s: this program did not write it."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, sh-printf-format
|
#, sh-printf-format
|
||||||
@@ -246,17 +246,16 @@ msgstr ""
|
|||||||
msgid "Unknown command: %s"
|
msgid "Unknown command: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Up/Down select - Enter edits its file types - q goes back"
|
msgid "Up/Down: select, Enter: edit file types, q: back"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Up/Down select - Enter picks - q cancels"
|
msgid "Up/Down: select, Enter: pick, q: cancel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Up/Down select - Space changes - q goes back"
|
msgid "Up/Down: select, Space: change, q: back"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid ""
|
msgid "Up/Down: select, Space: switch, a: add, Del: remove, q: back"
|
||||||
"Up/Down select - Space switches - a adds one - Del removes - q goes back"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Usage: bottles-opener [command]"
|
msgid "Usage: bottles-opener [command]"
|
||||||
@@ -286,7 +285,7 @@ msgstr ""
|
|||||||
msgid "added"
|
msgid "added"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "could not be read - is python3 with PyYAML installed?"
|
msgid "could not be read (is python3 with PyYAML installed?)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "double-click"
|
msgid "double-click"
|
||||||
@@ -298,7 +297,7 @@ msgstr ""
|
|||||||
msgid "never"
|
msgid "never"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "none yet - add one under File types"
|
msgid "none yet, add one under File types"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "not found"
|
msgid "not found"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: bottles-opener 0.1.0\n"
|
"Project-Id-Version: bottles-opener 0.1.0\n"
|
||||||
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/bottles-opener/issues\n"
|
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/bottles-opener/issues\n"
|
||||||
"POT-Creation-Date: 2026-09-21 11:30+0200\n"
|
"POT-Creation-Date: 2026-09-21 13:54+0200\n"
|
||||||
"PO-Revision-Date: 2026-09-21 00:00+0200\n"
|
"PO-Revision-Date: 2026-09-21 00:00+0200\n"
|
||||||
"Last-Translator: Felitendo\n"
|
"Last-Translator: Felitendo\n"
|
||||||
"Language-Team: German\n"
|
"Language-Team: German\n"
|
||||||
@@ -55,16 +55,16 @@ msgid "Already up to date for %s."
|
|||||||
msgstr "Für %s ist schon alles eingerichtet."
|
msgstr "Für %s ist schon alles eingerichtet."
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Bottles could not be read - is python3 with PyYAML installed? Nothing was "
|
"Bottles could not be read. Is python3 with PyYAML installed? Nothing was "
|
||||||
"changed."
|
"changed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Bottles konnte nicht gelesen werden - ist python3 mit PyYAML installiert? Es "
|
"Bottles konnte nicht gelesen werden. Ist python3 mit PyYAML installiert? Es "
|
||||||
"wurde nichts geändert."
|
"wurde nichts geändert."
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Bottles is not installed - neither the package nor the Flatpak was found."
|
"Bottles is not installed. Neither the package nor the Flatpak was found."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Bottles ist nicht installiert - weder das Paket noch das Flatpak wurde "
|
"Bottles ist nicht installiert. Weder das Paket noch das Flatpak wurde "
|
||||||
"gefunden."
|
"gefunden."
|
||||||
|
|
||||||
msgid "Commands:"
|
msgid "Commands:"
|
||||||
@@ -87,13 +87,13 @@ msgstr "Ein Doppelklick auf eine dieser Dateien öffnet sie in ihrem Programm."
|
|||||||
msgid "File opening"
|
msgid "File opening"
|
||||||
msgstr "Dateien öffnen"
|
msgstr "Dateien öffnen"
|
||||||
|
|
||||||
msgid "File opening is off - this is what it would do."
|
|
||||||
msgstr "Dateien öffnen ist aus - so würde es aussehen."
|
|
||||||
|
|
||||||
msgid "File opening is off and everything that was changed has been put back."
|
msgid "File opening is off and everything that was changed has been put back."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Dateien öffnen ist aus und alles, was geändert wurde, ist wiederhergestellt."
|
"Dateien öffnen ist aus und alles, was geändert wurde, ist wiederhergestellt."
|
||||||
|
|
||||||
|
msgid "File opening is off. This is what it would do."
|
||||||
|
msgstr "Dateien öffnen ist aus. So würde es aussehen."
|
||||||
|
|
||||||
msgid "File opening is off. Turn it on first."
|
msgid "File opening is off. Turn it on first."
|
||||||
msgstr "Dateien öffnen ist aus. Schalte es zuerst ein."
|
msgstr "Dateien öffnen ist aus. Schalte es zuerst ein."
|
||||||
|
|
||||||
@@ -127,8 +127,8 @@ msgid "Looking at the bottles..."
|
|||||||
msgstr "Bottles werden durchsucht..."
|
msgstr "Bottles werden durchsucht..."
|
||||||
|
|
||||||
#, sh-printf-format
|
#, sh-printf-format
|
||||||
msgid "More than one program is called \"%s\" - name the bottle as well."
|
msgid "More than one program is called \"%s\". Name the bottle as well."
|
||||||
msgstr "Mehrere Programme heißen „%s“ - gib auch die Bottle an."
|
msgstr "Mehrere Programme heißen „%s“. Gib auch die Bottle an."
|
||||||
|
|
||||||
msgid "New programs"
|
msgid "New programs"
|
||||||
msgstr "Neue Programme"
|
msgstr "Neue Programme"
|
||||||
@@ -162,16 +162,16 @@ msgid "No programs found in any bottle."
|
|||||||
msgstr "In keiner Bottle wurden Programme gefunden."
|
msgstr "In keiner Bottle wurden Programme gefunden."
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"No systemd user session - newly installed programs will not be picked up on "
|
"No systemd user session, so newly installed programs will not be picked up "
|
||||||
"their own."
|
"on their own."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Keine systemd-Benutzersitzung - neu installierte Programme werden nicht von "
|
"Keine systemd-Benutzersitzung, daher werden neu installierte Programme nicht "
|
||||||
"selbst erkannt."
|
"von selbst erkannt."
|
||||||
|
|
||||||
#, sh-printf-format
|
#, sh-printf-format
|
||||||
msgid "Not overwriting %s - it was not written by this program."
|
msgid "Not overwriting %s: this program did not write it."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"%s wird nicht überschrieben - die Datei stammt nicht von diesem Programm."
|
"%s wird nicht überschrieben, weil die Datei nicht von diesem Programm stammt."
|
||||||
|
|
||||||
#, sh-printf-format
|
#, sh-printf-format
|
||||||
msgid "Nothing opens .%s."
|
msgid "Nothing opens .%s."
|
||||||
@@ -261,20 +261,19 @@ msgstr "Ausschalten und alles wiederherstellen"
|
|||||||
msgid "Unknown command: %s"
|
msgid "Unknown command: %s"
|
||||||
msgstr "Unbekannter Befehl: %s"
|
msgstr "Unbekannter Befehl: %s"
|
||||||
|
|
||||||
msgid "Up/Down select - Enter edits its file types - q goes back"
|
msgid "Up/Down: select, Enter: edit file types, q: back"
|
||||||
msgstr "Hoch/Runter wählt - Enter bearbeitet die Dateitypen - q geht zurück"
|
msgstr "Hoch/Runter: wählen, Enter: Dateitypen bearbeiten, q: zurück"
|
||||||
|
|
||||||
msgid "Up/Down select - Enter picks - q cancels"
|
msgid "Up/Down: select, Enter: pick, q: cancel"
|
||||||
msgstr "Hoch/Runter wählt - Enter übernimmt - q bricht ab"
|
msgstr "Hoch/Runter: wählen, Enter: übernehmen, q: abbrechen"
|
||||||
|
|
||||||
msgid "Up/Down select - Space changes - q goes back"
|
msgid "Up/Down: select, Space: change, q: back"
|
||||||
msgstr "Hoch/Runter wählt - Leertaste ändert - q geht zurück"
|
msgstr "Hoch/Runter: wählen, Leertaste: ändern, q: zurück"
|
||||||
|
|
||||||
msgid ""
|
msgid "Up/Down: select, Space: switch, a: add, Del: remove, q: back"
|
||||||
"Up/Down select - Space switches - a adds one - Del removes - q goes back"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Hoch/Runter wählt - Leertaste schaltet um - a fügt hinzu - Entf entfernt - q "
|
"Hoch/Runter: wählen, Leertaste: umschalten, a: hinzufügen, Entf: entfernen, "
|
||||||
"geht zurück"
|
"q: zurück"
|
||||||
|
|
||||||
msgid "Usage: bottles-opener [command]"
|
msgid "Usage: bottles-opener [command]"
|
||||||
msgstr "Aufruf: bottles-opener [Befehl]"
|
msgstr "Aufruf: bottles-opener [Befehl]"
|
||||||
@@ -305,8 +304,8 @@ msgstr "Ohne Befehl wird ein interaktives Menü angezeigt."
|
|||||||
msgid "added"
|
msgid "added"
|
||||||
msgstr "hinzugefügt"
|
msgstr "hinzugefügt"
|
||||||
|
|
||||||
msgid "could not be read - is python3 with PyYAML installed?"
|
msgid "could not be read (is python3 with PyYAML installed?)"
|
||||||
msgstr "konnte nicht gelesen werden - ist python3 mit PyYAML installiert?"
|
msgstr "konnte nicht gelesen werden (ist python3 mit PyYAML installiert?)"
|
||||||
|
|
||||||
msgid "double-click"
|
msgid "double-click"
|
||||||
msgstr "Doppelklick"
|
msgstr "Doppelklick"
|
||||||
@@ -317,8 +316,8 @@ msgstr "gerade eben"
|
|||||||
msgid "never"
|
msgid "never"
|
||||||
msgstr "nie"
|
msgstr "nie"
|
||||||
|
|
||||||
msgid "none yet - add one under File types"
|
msgid "none yet, add one under File types"
|
||||||
msgstr "noch keine - unter Dateitypen hinzufügen"
|
msgstr "noch keine, unter Dateitypen hinzufügen"
|
||||||
|
|
||||||
msgid "not found"
|
msgid "not found"
|
||||||
msgstr "nicht gefunden"
|
msgstr "nicht gefunden"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Documentation=man:bottles-opener(1)
|
|||||||
# A bottle that is created or deleted. Where the bottles are depends on how
|
# A bottle that is created or deleted. Where the bottles are depends on how
|
||||||
# Bottles was installed: a distribution package keeps them in the user's data
|
# Bottles was installed: a distribution package keeps them in the user's data
|
||||||
# directory, the Flatpak in its own. A directory that does not exist on this
|
# directory, the Flatpak in its own. A directory that does not exist on this
|
||||||
# system costs nothing - systemd watches the nearest parent that does and picks
|
# system costs nothing: systemd watches the nearest parent that does and picks
|
||||||
# the path up when it appears.
|
# the path up when it appears.
|
||||||
PathModified=%h/.local/share/bottles/bottles
|
PathModified=%h/.local/share/bottles/bottles
|
||||||
PathModified=%h/.var/app/com.usebottles.bottles/data/bottles/bottles
|
PathModified=%h/.var/app/com.usebottles.bottles/data/bottles/bottles
|
||||||
|
|||||||
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# bottles-opener - double-click a file and it opens in its Windows program,
|
# bottles-opener: double-click a file and it opens in its Windows program,
|
||||||
# inside its bottle
|
# inside its bottle
|
||||||
#
|
#
|
||||||
# Copyright (C) 2026 Felitendo
|
# Copyright (C) 2026 Felitendo
|
||||||
@@ -35,7 +35,7 @@ fi
|
|||||||
_bo_need_bottles() {
|
_bo_need_bottles() {
|
||||||
bo_installs_detect
|
bo_installs_detect
|
||||||
(( ${#BO_INSTALLS[@]} )) && return 0
|
(( ${#BO_INSTALLS[@]} )) && return 0
|
||||||
bo_bad "$(bo_msg "Bottles is not installed - neither the package nor the Flatpak was found.")"
|
bo_bad "$(bo_msg "Bottles is not installed. Neither the package nor the Flatpak was found.")"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ bo_do_enable() {
|
|||||||
if bo_watch_available; then
|
if bo_watch_available; then
|
||||||
bo_watch_enable || bo_note "$(bo_msg "Could not start the watcher for newly installed programs.")"
|
bo_watch_enable || bo_note "$(bo_msg "Could not start the watcher for newly installed programs.")"
|
||||||
else
|
else
|
||||||
bo_note "$(bo_msg "No systemd user session - newly installed programs will not be picked up on their own.")"
|
bo_note "$(bo_msg "No systemd user session, so newly installed programs will not be picked up on their own.")"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ _bo_find_program() {
|
|||||||
if (( ${#hits[@]} == 0 )); then
|
if (( ${#hits[@]} == 0 )); then
|
||||||
bo_bad "$(bo_msg "No program called \"%s\" was found. \"bottles-opener programs\" lists them all." "$want")"
|
bo_bad "$(bo_msg "No program called \"%s\" was found. \"bottles-opener programs\" lists them all." "$want")"
|
||||||
else
|
else
|
||||||
bo_bad "$(bo_msg "More than one program is called \"%s\" - name the bottle as well." "$want")"
|
bo_bad "$(bo_msg "More than one program is called \"%s\". Name the bottle as well." "$want")"
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -89,7 +89,7 @@ _bo_file_put() {
|
|||||||
local path="$1" content="$2" rc
|
local path="$1" content="$2" rc
|
||||||
|
|
||||||
if ! _bo_owned "$path"; then
|
if ! _bo_owned "$path"; then
|
||||||
bo_bad "$(bo_msg "Not overwriting %s - it was not written by this program." "$path")"
|
bo_bad "$(bo_msg "Not overwriting %s: this program did not write it." "$path")"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -193,7 +193,7 @@ bo_apply() {
|
|||||||
|
|
||||||
# Unreadable looks like empty, and converging on empty removes everything.
|
# Unreadable looks like empty, and converging on empty removes everything.
|
||||||
if [[ -n $BO_SCAN_ERROR ]]; then
|
if [[ -n $BO_SCAN_ERROR ]]; then
|
||||||
bo_bad "$(bo_msg "Bottles could not be read - is python3 with PyYAML installed? Nothing was changed.")"
|
bo_bad "$(bo_msg "Bottles could not be read. Is python3 with PyYAML installed? Nothing was changed.")"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -112,8 +112,8 @@ bo_assoc_compute() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# A detected type is the default when this program teaches the system the
|
# A detected type is the default when this program teaches the system the
|
||||||
# type - nothing else could open it. A type the system knows already
|
# type, because nothing else could open it. A type the system knows already
|
||||||
# belongs to some application somebody chose, and only gets "Open With".
|
# belongs to an app somebody chose, so it only gets "Open With".
|
||||||
for k in "${!BO_A_EXT[@]}"; do
|
for k in "${!BO_A_EXT[@]}"; do
|
||||||
[[ ${BO_A_STATE[k]} == auto ]] || continue
|
[[ ${BO_A_STATE[k]} == auto ]] || continue
|
||||||
ext="${BO_A_EXT[k]}"
|
ext="${BO_A_EXT[k]}"
|
||||||
|
|||||||
+1
-1
@@ -145,7 +145,7 @@ bo_types_set() {
|
|||||||
mkdir -p "$(dirname "$BO_TYPES")" || return 1
|
mkdir -p "$(dirname "$BO_TYPES")" || return 1
|
||||||
if [[ ! -e $BO_TYPES ]]; then
|
if [[ ! -e $BO_TYPES ]]; then
|
||||||
{
|
{
|
||||||
printf '# %s - file types changed by hand\n' "$BO_PRETTY"
|
printf '# %s: file types changed by hand\n' "$BO_PRETTY"
|
||||||
printf '#\n'
|
printf '#\n'
|
||||||
printf '# Written by `%s`. Nothing here needs editing by hand.\n' "$BO_NAME"
|
printf '# Written by `%s`. Nothing here needs editing by hand.\n' "$BO_NAME"
|
||||||
} > "$BO_TYPES" || return 1
|
} > "$BO_TYPES" || return 1
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Writes one icon of a Windows program as PNG to stdout - the largest image of
|
# Writes one icon of a Windows program as PNG to stdout. It picks the largest
|
||||||
# it, the way Explorer would pick it for a big view.
|
# image, like Explorer does for a big view.
|
||||||
#
|
#
|
||||||
# Usage: icon.py <file> [index]
|
# Usage: icon.py <file> [index]
|
||||||
# <file> an .exe or .dll, an .ico, or a .png
|
# <file> an .exe or .dll, an .ico, or a .png
|
||||||
|
|||||||
+4
-4
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# The bottle's registry is asked first (scan.py): whatever an installer
|
# The bottle's registry is asked first (scan.py): whatever an installer
|
||||||
# registered there is what Windows would open. This table is for programs
|
# registered there is what Windows would open. This table is for programs
|
||||||
# that registered nothing - portable installs, copied folders.
|
# that registered nothing, like portable installs or copied folders.
|
||||||
|
|
||||||
# Format: <pattern>|<ext>[=<switch>] ...
|
# Format: <pattern>|<ext>[=<switch>] ...
|
||||||
#
|
#
|
||||||
@@ -80,9 +80,9 @@ BO_KNOWN_PROGRAMS=(
|
|||||||
# Format: <ext>|<MIME type>|<description>|<magic>|<generic icon>|<flags>
|
# Format: <ext>|<MIME type>|<description>|<magic>|<generic icon>|<flags>
|
||||||
#
|
#
|
||||||
# <magic>: string:<text> or big32:<hex>, matched at offset 0.
|
# <magic>: string:<text> or big32:<hex>, matched at offset 0.
|
||||||
# <flags>: "own" defines the type even where the system has the extension
|
# <flags>: "own" defines the type even where the system already uses the
|
||||||
# already, as something else - .mpp is Musepack audio there, not a Project
|
# extension for something else. For example, .mpp is Musepack audio there, not
|
||||||
# file. The magic tells the two apart.
|
# a Project file. The magic tells the two apart.
|
||||||
BO_KNOWN_TYPES=(
|
BO_KNOWN_TYPES=(
|
||||||
# Office
|
# Office
|
||||||
"ppa|application/x-ms-powerpoint-addin|PowerPoint add-in||x-office-presentation|"
|
"ppa|application/x-ms-powerpoint-addin|PowerPoint add-in||x-office-presentation|"
|
||||||
|
|||||||
+7
-7
@@ -184,7 +184,7 @@ bo_ui_status() {
|
|||||||
_bo_row "Bottles" "${BO_C_YELLOW}$(bo_msg "not found")${BO_C_RESET}"
|
_bo_row "Bottles" "${BO_C_YELLOW}$(bo_msg "not found")${BO_C_RESET}"
|
||||||
elif [[ -n $BO_SCAN_ERROR ]]; then
|
elif [[ -n $BO_SCAN_ERROR ]]; then
|
||||||
_bo_row "Bottles" \
|
_bo_row "Bottles" \
|
||||||
"${BO_C_RED}$(bo_msg "could not be read - is python3 with PyYAML installed?")${BO_C_RESET}"
|
"${BO_C_RED}$(bo_msg "could not be read (is python3 with PyYAML installed?)")${BO_C_RESET}"
|
||||||
else
|
else
|
||||||
_bo_row "Bottles" "$where"
|
_bo_row "Bottles" "$where"
|
||||||
fi
|
fi
|
||||||
@@ -201,7 +201,7 @@ bo_ui_status() {
|
|||||||
if (( BO_N_ACTIVE )); then
|
if (( BO_N_ACTIVE )); then
|
||||||
_bo_row "$(bo_msg "File types")" "$exts"
|
_bo_row "$(bo_msg "File types")" "$exts"
|
||||||
else
|
else
|
||||||
_bo_row "$(bo_msg "File types")" "${BO_C_DIM}$(bo_msg "none yet - add one under File types")${BO_C_RESET}"
|
_bo_row "$(bo_msg "File types")" "${BO_C_DIM}$(bo_msg "none yet, add one under File types")${BO_C_RESET}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if bo_watch_available; then
|
if bo_watch_available; then
|
||||||
@@ -250,7 +250,7 @@ bo_ui_settings() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
bo_msg_into "Settings"; title="$BO_MSG_RESULT"
|
bo_msg_into "Settings"; title="$BO_MSG_RESULT"
|
||||||
bo_msg_into "Up/Down select - Space changes - q goes back"
|
bo_msg_into "Up/Down: select, Space: change, q: back"
|
||||||
hint="$BO_MSG_RESULT"
|
hint="$BO_MSG_RESULT"
|
||||||
|
|
||||||
_bo_clearseq
|
_bo_clearseq
|
||||||
@@ -327,7 +327,7 @@ bo_ui_pick_program() {
|
|||||||
labels+=("$BO_LABEL")
|
labels+=("$BO_LABEL")
|
||||||
done
|
done
|
||||||
|
|
||||||
bo_msg_into "Up/Down select - Enter picks - q cancels"
|
bo_msg_into "Up/Down: select, Enter: pick, q: cancel"
|
||||||
hint="$BO_MSG_RESULT"
|
hint="$BO_MSG_RESULT"
|
||||||
_bo_clearseq
|
_bo_clearseq
|
||||||
_bo_term_rows 7
|
_bo_term_rows 7
|
||||||
@@ -416,7 +416,7 @@ bo_ui_programs() {
|
|||||||
local -a labels=() pexts=()
|
local -a labels=() pexts=()
|
||||||
|
|
||||||
bo_msg_into "Programs"; title="$BO_MSG_RESULT"
|
bo_msg_into "Programs"; title="$BO_MSG_RESULT"
|
||||||
bo_msg_into "Up/Down select - Enter edits its file types - q goes back"
|
bo_msg_into "Up/Down: select, Enter: edit file types, q: back"
|
||||||
hint="$BO_MSG_RESULT"
|
hint="$BO_MSG_RESULT"
|
||||||
bo_msg_into "No programs found in any bottle."; empty="$BO_MSG_RESULT"
|
bo_msg_into "No programs found in any bottle."; empty="$BO_MSG_RESULT"
|
||||||
|
|
||||||
@@ -501,11 +501,11 @@ bo_ui_types() {
|
|||||||
local l_default l_openwith l_off l_missing l_added
|
local l_default l_openwith l_off l_missing l_added
|
||||||
|
|
||||||
bo_msg_into "File types"; title="$BO_MSG_RESULT"
|
bo_msg_into "File types"; title="$BO_MSG_RESULT"
|
||||||
bo_msg_into "Up/Down select - Space switches - a adds one - Del removes - q goes back"
|
bo_msg_into "Up/Down: select, Space: switch, a: add, Del: remove, q: back"
|
||||||
hint="$BO_MSG_RESULT"
|
hint="$BO_MSG_RESULT"
|
||||||
bo_msg_into "\"double-click\" opens it; \"Open With\" only lists the program there."
|
bo_msg_into "\"double-click\" opens it; \"Open With\" only lists the program there."
|
||||||
legend="$BO_MSG_RESULT"
|
legend="$BO_MSG_RESULT"
|
||||||
bo_msg_into "File opening is off - this is what it would do."
|
bo_msg_into "File opening is off. This is what it would do."
|
||||||
warn="$BO_MSG_RESULT"
|
warn="$BO_MSG_RESULT"
|
||||||
bo_msg_into "No file types yet. Press a to add one."
|
bo_msg_into "No file types yet. Press a to add one."
|
||||||
empty="$BO_MSG_RESULT"
|
empty="$BO_MSG_RESULT"
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Lists the bottles and programs of one Bottles installation, and the file
|
# Lists the bottles and programs of one Bottles installation, and the file
|
||||||
# types each program registered in its bottle's registry - the way Windows
|
# types each program registered in its bottle's registry. That is how Windows
|
||||||
# knows them: extension -> ProgID -> open command, icon and description.
|
# knows them: extension -> ProgID -> open command, icon and description.
|
||||||
#
|
#
|
||||||
# Runs on the host, or inside the Bottles Flatpak fed through stdin, so it only
|
# Runs on the host, or inside the Bottles Flatpak fed through stdin, so it only
|
||||||
|
|||||||
Reference in new issue
Block a user