0

Hi this is my second day using linux so I am a noob. But when looking for a solution for my question I found this question: Install WhatsApp webapp on Ubuntu the top ranked answer does nothing for me, I just end up with the text copied in a window.

I assume there are some obvious steps which I am missing as someone completely new to linux. I tried saving that file and finding it through terminal but the directory where it's supposedly saved doesn't exist.

6
  • 1
    There are four answers in the question that you linked to. Are you really saying that you tried the first half of just one and then gave up? Or are you asking for tutorials on how Ubuntu software and the terminal work? Your question seems unclear to me. There is no official WhatsApp release for Linux, so all answers will be a bit kludgy to some degree.
    – user535733
    Commented Jan 13, 2021 at 11:32
  • @user535733 The one I assume he's referring to is the one that opens the web browser in application mode. Commented Jan 13, 2021 at 11:42
  • are you use Kubuntu?
    – Am.Shekari
    Commented Jan 13, 2021 at 12:37
  • I am asking about the top voted answer, because I want to learn to implement what 59 people thought was a good answer. I wish I could ask about it in a comment under that answer but I couldn't write a comment there for a lack of points.
    – Olivier
    Commented Jan 13, 2021 at 12:40
  • 1
    I recommend trying franz which is a great tool that combines many messaging services (including whatsapp) into one interface: meetfranz.com. Not posting as an answer since it isn't a way of installing whatsapp, per se, but a way of using whatsapp.
    – terdon
    Commented Jan 13, 2021 at 13:02

5 Answers 5

3

It's very simple. Open the terminal by pressing Ctrl + alt + t and just type the following command:

sudo snap install whatsapp-for-linux

and then press y when an option is prompted. It will be installed automatically.

2

For a new user, the easiest solution is to try a an unofficial Snap package.

  1. Open your Ubuntu Software application.
  2. Search for WhatsApp.

... or ...

https://snapcraft.io/search?q=whatsapp . Pick one and click "install"

Both options will show the same Snap packages.

2
  • 2
    can you trust any program that shows up there?
    – Olivier
    Commented Jan 13, 2021 at 12:54
  • 1
    That's a completely different question. And it has been asked before. Use the Search box at the top of every AskUbuntu page to start your research on that. ALL whatsapp-on-Linux solutions are unofficial, so you must do your own research on whom to trust.
    – user535733
    Commented Jan 13, 2021 at 12:55
2
  1. Make sure you have Google Chrome, if not, then install it.
  2. Open terminal
  3. Run gedit /home/$USER/.local/share/applications/whatsapp.desktop
  4. Once the text editor opens paste this code in it. Save it and exit.
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Name=WhatsApp
    GenericName=WhatsApp
    Comment=WhatsApp desktop webapp
    Exec=/opt/google/chrome/google-chrome --app=https://web.whatsapp.com/
    Terminal=false
    Type=Application
    StartupNotify=true
    MimeType=text/plain;
    Categories=Network;Application;
    Keywords=WhatsApp;webapp;
    X-Ubuntu-Gettext-Domain=WhatsApp
    StartupWMClass=web.whatsapp.com
  1. Now you can find whatsapp through the Activities menu, if not then run
    nautilus /home/$USER/.local/share/applications  
  1. Right click whatsapp.desktop,in properties ensure "Allow to run as program" is checked. Then open it, select "Trust and Launch".

Any errors please let me know.

8
  • 4
    Don't run sudo gedit..., you don't need sudo to create files in your home folder, and also it's a bad idea. Commented Jan 13, 2021 at 11:25
  • 2
    Can we do something similar in Firefox as well? Commented Jan 13, 2021 at 12:18
  • 1
    Can I apply this for github? Commented Jan 13, 2021 at 14:49
  • 1
    @preIdiot sure !!! Commented Jan 14, 2021 at 3:40
  • 1
    One more...how to launch these from terminal eg.,writing Whatsapp in terminal Commented Jan 14, 2021 at 7:14
0

Create the file in ~/.local/share/applications, so you don't have to mess with sudo:

  1. Open gedit, paste the text shown in the answer you link, and save as <the name you prefer>.desktop, let's say whataspp.desktop, under the directory mentioned.

  2. In the Exec line, you are telling which web browser to use, using the absolute path to the executable.

As said in the other answer, if you are going to use chrome, or chromium, you have to install it and change the line with the path to the executable. Use which google-chrome (or which chromium-browser) to check the path.

2
  • Thank you for the answer, when I now run the file from activities, it just opens my opera browser which I use as my main browser. Am I still doing something wrong? I prefer not to use google chrome as suggested by other answers
    – Olivier
    Commented Jan 13, 2021 at 12:49
  • @Olivier sorry, I was sure /usr/bin/gnome-www-browser was gnome's browser. I was wrong, it just opens the default, in your case opera. I'll edit the answer accordingly. It would seem that this is a feature of chrome/chromium, I couldn't find the same in firefox or opera yet. The alternative to chrome would be chromium then. Commented Jan 13, 2021 at 13:00
-1

You'll first have to install Chrome to do this, because Firefox doesn't natively support installing websites as applications yet. To install Chrome, open a Terminal window and type:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo dpkg -i google-chrome-stable_current_amd64.deb

Type in the admin password if asked. Now, open WhatsApp Web in Chrome, and sign in. After signing in, click on the options button in the top right corner, click on "More tools", then click on "Create shortcut...", and click on the checkmark that says: "Open as window", then click on "Create"

Now, open the apps screen or the Activities overview, and type "Whatsapp" in the search bar, then right click on the WA icon, and click on "Add to favourites". Done!

2
  • 2
    Did you ever try to run sudo apt install chrome?
    – Pilot6
    Commented Jan 13, 2021 at 11:12
  • @Pilot6 well I forgot the command (I'm sorry for that). I've fixed the installation instructions now
    – NMrocks
    Commented Jan 15, 2021 at 3:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .