mimbrero / whatsapp-desktop-linux

Unofficial WhatsApp Linux client built with Electron.
https://flathub.org/apps/details/io.github.mimbrero.WhatsAppDesktop
MIT License
78 stars 20 forks source link

Start hidden #53

Open tomsupergreen opened 7 months ago

tomsupergreen commented 7 months ago

Hello,

I saw that there is CLI feature for start hidden, but how to configure it in Ubuntu please ?

I have no idea where I need to had this "--start-hidden".

Tks !!

JGMelon22 commented 7 months ago

I have no idea where I need to had this "--start-hidden".

You can run on terminal like this flatpak run io.github.mimbrero.WhatsAppDesktop --start-hidden Or, using a menu manager like MenuLibre, you can append the command like this to always open the program using this parameter x

tomsupergreen commented 7 months ago

Tks a lot, I tried already and I thought that i was wrong....here is the output I have:

<flatpak run io.github.mimbrero.WhatsAppDesktop --start-hidden Gtk-Message: 11:25:43.992: Failed to load module "canberra-gtk-module" Gtk-Message: 11:25:43.994: Failed to load module "canberra-gtk-module" [3:1128/112544.028524:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Aucun fichier ou dossier de ce type [3:1128/112544.028599:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Aucun fichier ou dossier de ce type>

I have trouble to make the canberra-gtk-module works as it is well installed....

JGMelon22 commented 7 months ago

I have trouble to make the canberra-gtk-module works as it is well installed....

I reckon this is the expected behavior. It should display the app icon at your tray icon. Just ignore this log image

tomsupergreen commented 7 months ago

I have no idea where I need to had this "--start-hidden".

You can run on terminal like this flatpak run io.github.mimbrero.WhatsAppDesktop --start-hidden Or, using a menu manager like MenuLibre, you can append the command like this to always open the program using this parameter x

I did the same config, however, it does not start hidden, I still have the main screen at start

JGMelon22 commented 7 months ago

I have no idea where I need to had this "--start-hidden".

You can run on terminal like this flatpak run io.github.mimbrero.WhatsAppDesktop --start-hidden Or, using a menu manager like MenuLibre, you can append the command like this to always open the program using this parameter x

I did the same config, however, it does not start hidden, I still have the main screen at start

Are you using Wayland or X11 session?

tomsupergreen commented 7 months ago

I'm using default config for Ubuntu 22.04: Wayland.

JGMelon22 commented 7 months ago

I'm using default config for Ubuntu 22.04: Wayland.

Switch to X11 session and give it a shot, please