インストール - DeepL Linux

2024年1月11日 (木) 03:58時点におけるWiki (トーク | 投稿記録)による版 (ページの作成:「== 概要 == DeepL Linuxは、Electronを使用したLinux向けのDeepLクライアントソフトウェアである。<br> <br> 動作試験は、ubuntuでのみ実施されている。<br> <br><br> == DeepL Linuxのインストール == ==== AppImageの使用 ==== [https://github.com/kumakichi/Deepl-linux-electron DeepL LinuxのGithub]にアクセスして、AppImageファイルをダウンロードする。<br> ダウンロードしたAppImageファイルに実…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

概要

DeepL Linuxは、Electronを使用したLinux向けのDeepLクライアントソフトウェアである。

動作試験は、ubuntuでのみ実施されている。


DeepL Linuxのインストール

AppImageの使用

DeepL LinuxのGithubにアクセスして、AppImageファイルをダウンロードする。
ダウンロードしたAppImageファイルに実行権限を付与する。

chmod u+x Deepl-Linux-Electron-<バージョン>.appimage


必要な場合は、AppImageファイルを任意のディレクトリに配置する。

Screen Translatorのデスクトップエントリファイルを作成する。

vi ~/.local/share/applications/ScreenTranslator.desktop


 # ~/.local/share/applications/DeepL-Linux.desktopファイル
 
 [Desktop Entry]
 Type=Application
 Name=Deepl-Linux-Electron
 GenericName=Deepl-Linux-Electron
 Comment=Translate with DeepL for Linux
 Exec=/<DeepL Linuxのインストールディレクトリ>/Deepl-Linux-Electron.appimage %U
 Icon=deepl-linux-electron
 Categories=Utility;
 Keywords=translate;deepl;
 Terminal=false
 StartupWMClass=Deepl-Linux-Electron
 X-AppImage-Version=<バージョン>


ソースコードからインストール

DeepL LinuxのGithubにアクセスして、ソースコードをダウンロードする。
ダウンロードしたファイルを解凍する。

tar xf Deepl-linux-electron-<バージョン>.tar.gz
cd Deepl-linux-electron-<バージョン>


または、git cloneコマンドを実行して、ソースコードをダウンロードする。

git clone https://github.com/kumakichi/Deepl-linux-electron.git
cd Deepl-linux-electron


DeepL Linuxをビルドする。
dist/linux-unpacked/deepl-linux-electronディレクトリに実行ファイルが生成される。

yarn

yarn dist:dir


生成された実行ファイルを任意のディレクトリに配置する。

cd dist/linux-unpacked

mkdir -p <DeepL Linuxのインストールディレクトリ>
mv deepl-linux-electron <DeepL Linuxのインストールディレクトリ>


DeepL Linuxのデスクトップエントリファイルを作成する。

vi ~/.local/share/applications/DeepL-Linux.desktop


 # ~/.local/share/applications/DeepL-Linux.desktopファイル
 
 [Desktop Entry]
 Type=Application
 Name=Deepl-Linux-Electron
 GenericName=Deepl-Linux-Electron
 Comment=Translate with DeepL for Linux
 Exec=/<DeepL Linuxのインストールディレクトリ>/Deepl-Linux-Electron %U
 Icon=deepl-linux-electron
 Categories=Utility;
 Keywords=translate;deepl;
 Terminal=false
 StartupWMClass=Deepl-Linux-Electron



使用方法

DeepL Linuxを起動して、任意のソフトウェアのテキストをコピーする。 (クリップボードにコピーされる)
[Ctrl] + [Alt] + [D]キーを同時押下すると自動翻訳される。

また、DeepL Linuxの[Settings]メインメニュー - [Shortcut]を選択することにより、上記のショートカットを変更できる。