Skip to content

Andaroth/chatgpt-electron

Repository files navigation

ChatGPT Electron

sample

Requirements

Development

Start project:

npm i
npm run dev

Installation

Generate package

npm i
npm run package

This will create a folder (ie: out/chatgpt-electron-linux-x64) which contains the executable file for Debian.

You can directly run out/chatgpt-electron-linux-x64/chatgpt-electron or you may want to use it in a "widget":

Use on Windows

  1. Move the executable folder out/chatgpt-electron-win32-x64 anywhere you like it

  2. Run chatgpt-electron.exe and enjoy!

Use on MacOS

  1. Move the executable folder out/chatgpt-electron-darwin-arm64 anywhere you like it

  2. Run chatgpt-electron.app and enjoy!

Use on Linux

  1. Move the executable folder out/chatgpt-electron-linux-x64 anywhere you like it

  2. run chatgpt-electron-linux-x64/open_chatgpt and enjoy!

Panel shortcut in XFCE

Requirements

  • xdotool apt install xdotool
  • wmctrl apt install wmctrl

To make a shortcut to open a controlled window from your XFCE panel, you need to call your ./open_chatgpt.sh.

The goal of ./open_chatgpt.sh is to find the Electron window then resize it at will.

It works with a package output and I did NOT tested it with deb and rpm.

  1. Right click on your XFCE Panel > "Panel" > "Add new items..."

  2. Double-click on "Launcher":

step2

  1. In the "Launcher" window, press the "+" button.

  2. In the "Edit Launcher" window, configure the Launcher so the command will open your open_chatgpt.sh from its path:

step4

  1. Optional: Name the shortcut and select an Icon (you can copy it from GPT.svg)

  2. Save, Close, Enjoy!

Credits

This was made by Axel Andaroth (aka Pirate) for personal use with Debian 12 XFCE.

Source is open because sharing is caring but I don't plan to spend time to maintain nor to update this project.

Thanks for your support!