36

How can I install Whatsapp web app on Ubuntu? I found a similar question How to install WhatsApp?, but here I am asking for the WhatsApp desktop webapp so that I can directly access the application without opening a browser.

  • WhatsApp Web is the only finest solution out of all as, whatsApp don't have their official distro for linux i.e ubuntu etc. – Haisum Usman Nov 20 '19 at 8:03
42

Instructions:

  • Download the WhatsApp webapp DEB installation file from the link here

  • Double click on the DEB file to open and install with the Ubuntu Software Center, or from the command line with:

    sudo dpkg -i whatsapp-webapp_1.0_all.deb
    
  • Select WhatsApp from your Dash or Applications menu to start.

Imgur

  • Now Scan the QR code with your phone using the WhatsApp application.

reference here

  • 13
    after some days, this becomes full of commercial adverts. – Débora May 21 '16 at 14:50
  • 27
    This is not an official distribution. – Sachith Muhandiram May 10 '17 at 18:48
  • 4
    Unfortunately, this is exactly what Ravan does not want ("without opening a browser"). That WhatsApp command just starts Google Chrome. And, on top of that, Google Chrome is a Trojan Horse. – Papou Dec 17 '17 at 20:21
  • 1
    @Papou This answer was written by Raven so.. I assume they know what they want ;) Can you elaborate on the trojan horse? I inspected the .deb file and it's just a .desktop file that opens the browser to web.whatsapp.com – Seth Jul 1 '18 at 16:51
  • 5
    Do not install this, it's not official as well it's not open-source. – Gaurav Gandhi Dec 24 '18 at 4:34
33

Best way I think is: https://web.whatsapp.com/ . It asks to open your whatsapp in your mobile and let it to scan the codebars to the phone. So, simply open your whatsapp in mobile> select the option whatsapp web > focus your phone camera to the monitor where the browser shows a codebar. That s all. Then Browser opens your whatsapp in itself. Nothing to install . Easy

  • What I dont understand is why this answer is not the top one. And a possible security threat is the top voted answer ?? – ForeverLearner Jan 1 '19 at 14:40
  • 5
    Because the question specifically asks for a desktop app, not web browser :) – Nagabhushan S N Jan 20 '19 at 13:52
  • Does not work... requires having a "phone" to "Scan the QR code" – Michael Aug 30 '19 at 21:20
  • May I add, you can then go to tools and create shortcut as a window. It becomes an application and shows in the application list. – Bernard the Bear Dec 20 '19 at 18:11
  • @Michael yeah, whatsapp is only a phone app. You cannot run WhatsApp without having a phone. – Aurelius Dec 28 '19 at 23:13
20

👷‍♂️ You can create your own whatsapp app (👨‍🔬 tested):

🏗️ Creating Your Own Whatsapp Desktop App

  • 👨‍💻 Type terminal sudo -H gedit /usr/share/applications/whatsapp-webapp.desktop
  • 📋 Copy following text to opened screen
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=WhatsApp
GenericName=WhatsApp
Comment=WhatsApp desktop webapp
#Exec=webapp-container --store-session-cookies --webappUrlPatterns=https?://*.whatsapp.com/* --user-agent-string='Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36' https://web.whatsapp.com %u
Exec=/opt/google/chrome/google-chrome --app=https://web.whatsapp.com/
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
# If you want icon, type path of icon
# Icon=
Categories=Network;Application;
Keywords=WhatsApp;webapp;
X-Ubuntu-Gettext-Domain=WhatsApp
StartupWMClass=web.whatsapp.com

⌨️ Making keyboard shortcut (Optionally)

You can follow the instructions below or just look my other answer about Making Shortcuts topic.

wmctrl command used for focus or create app, type sudo apt install wmctrl to install it

  • ➕ Open shortcut window, click + the bottom of the window
  • 🔨 Set name Whatsapp Chrome
  • 🚀 Finally, keyboard shortcuts to open | create
bash -c "wmctrl -xa web.whatsapp.com || /opt/google/chrome/google-chrome --app=https://web.whatsapp.com/"
1

Some people face the problem that the App shows you some browsers you should install instead of working correctly. If that happens to you, this is the fix:

  1. Once logged in, go to:

    /.config/UnofficialWhatsApp/"Application Cache"
    
  2. Close the app

  3. Remove index file
  4. Change permission for Application Cache to make it inaccessible

    sudo chmod 000 "Application Cache"
    

Reference

1

This is an old question but now I need to use WhatsApp in my Ubuntu environment, and I found this solution based on a third-party WhatsApp Linux Client called Whatsie. This client works for Debian 8, Ubuntu 16.04 LTS and Linux Mint 18. Whatsie is a simple but helpful wrapper for WhatsApp Web, available for Linux, Mac OS X and Windows.

How to install Install Whatsie?

The recommended way to install it is through the latest deb package.

Ubuntu, Debian 8+

  1. Download whatsie-x.x.x-linux-arch.deb
  2. Double click and install, or run this command in the terminal:

    dpkg -i whatsie-x.x.x-linux-arch.deb

  3. Start the app with your app launcher or by running whatsie in a terminal

You can also use apt

  1. Open a terminal window, then download the gpg key to make sure the deb you download is correct:

    sudo apt-key adv --keyserver pool.sks-keyservers.net --recv 6DDA23616E3FE905FFDA152AE61DA9241537994D 
    
  2. Add the author’s repository to your sources list by running the following command. :

    echo "deb https://dl.bintray.com/aluxian/deb stable main" | sudo tee -a /etc/apt/sources.list.d/whatsie.list
    

    Replace stable if you want to pick another channel like beta or dev (pick stable if you're unsure).

  3. Finally, update local package index and install Whatsie:

    sudo apt update
    sudo apt install whatsie
    

Once installed, you can start Whatsie from Unity Dash or Application Menu.

  • 1
    The Whatsie github repository and release don't exist anymore. – Sebastian Cruz Oct 27 '18 at 11:30
1

WhatsApp Web Application

On GNOME/Ubuntu Desktop without installing any additional software

enter image description here

The Web Application feature of Gnome Web (formerly known as epiphany-browser) can be used to create your personal container for WhatsApp.

  • Automatic icon generation
  • Separate container, window, app
  • Always up-to-date via package-manager

Steps to configure:

  1. Open Gnome Web and go to http://web.whatsapp.com
  2. Select 'Install Site as Web Application' from the burger menu
  3. Name the app as you like e.g. WhatsAppWeb or Whatsie

I recommend to log out from all devices, then open the created desktop app.

enter image description here

  1. Finally scan the QR code.

Remove WebApp:

Type about:applications in GNOME Web address bar to manage/remove Web Appliactions

Details:

By habit, mine is called "Whatsie" and the process creates the file ~/.local/share/applications/epiphany-whatsie-eeb...321.desktop

Official website: https://wiki.gnome.org/Apps/Web/

Official instructions: https://help.gnome.org/users/epiphany/stable/browse-webapps.html.en

Please, be careful installing apps from sources you don't trust!

0

I think the best alternative today is to use whatsapp-linux which is an Electron wrapper for WhatsApp's web: https://web.whatsapp.com/

You can find the latest version in the Release section of GitHub: https://github.com/cstayyab/whatsapp-linux/releases

It comes handily packed as an AppImage, so it's as easy as downloading, changing the execution permissions of the file and running it.

UPDATE 3/3/19: This is currently not working.

Not the answer you're looking for? Browse other questions tagged or ask your own question.