Skip to content

DeepL(https://www.deepl.com/) Integration for Linux. Select text in any application and simply press Ctrl+C and another shortcut to translate it.

License

Notifications You must be signed in to change notification settings

kumakichi/Deepl-linux-electron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A client for deepl in Linux, using Electron.

Tested under ubuntu 20.04 only.

./demo.png

How to use

get binary

Clone this repo and build it, or just simply download the prebuilt binary from Release Page

use it

Open deepl-linux-electron, select text in any application, press Ctrl+c to copy selected content into clipboard, then use shortcut Control+Alt+D to translate

set shortcut

You can change this shortcut on the program menu: Settings -> Shortcut

user-defined css

Support user-defined css, just put your css code into

~/.config/Deepl-Linux-Electron/user_theme.css

a simple dark mode implementation, thanks to NotJ3st3r:

html {
  filter: invert(90%) hue-rotate(180deg) brightness(110%) contrast(110%);
  background: white;
}

How to build

install yarn

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn

install dependencies

yarn

build or debug

# for dev
yarn dev

# for ubuntu 24.04 dev
yarn dev --no-sandbox

# for build
yarn dist:dir # generated file : dist/linux-unpacked/deepl-linux-electron

build in docker

# run docker in repo dir
docker run -it --rm --name deepl-linux -v $(pwd):/app -w /app --entrypoint /bin/bash node:18

# build
yarn install
yarn dist

run on linux

Deepl may not start with the error

FATAL:gpu_data_manager_impl_private.cc(445)] GPU process isn’t usable. Goodbye.

If you encounter this, try running

deepl --in-process-gpu

Troubleshooting

ubuntu 24.04 core dump

Error message likes:

The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I’m aborting now. You need to make sure that dev/shm/tmpdir.mount_Deepl-iCQgY6/chrome-sandbox is owned by root and has mode 4755.

just run with parameter:

./Deepl-Linux-Electron-1.5.0.AppImage --no-sandbox

see: Doesnt’ work with Kubuntu 24.4

Bug: The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I’m aborting now.

Obsidian AppImage - The SUID sandbox helper binary was found, but is not configured correctly

About

DeepL(https://www.deepl.com/) Integration for Linux. Select text in any application and simply press Ctrl+C and another shortcut to translate it.

Resources

License

Stars

Watchers

Forks

Packages

No packages published