theinvisible / openfortigui

VPN-GUI to connect to Fortigate-Hardware, based on openfortivpn
https://hadler.me/linux/openfortigui/
GNU General Public License v3.0
492 stars 54 forks source link

Tray icon missing on Ubuntu 20.10 when using gnome Autostart #139

Closed doudz closed 3 years ago

doudz commented 3 years ago

The tray icon is missing on Ubuntu 20.10, it was working good on Ubuntu 20.04

Could you add support for Ubuntu 20.10 ?

doudz commented 3 years ago

I confirm that just recompiling on Ubuntu 20.10 fix the problem

sudo apt install build-essential qt5-default libssl-dev qt5keychain-dev
git clone https://github.com/theinvisible/openfortigui.git
cd openfortigui
git submodule init
git submodule update
qmake
make -j4
sudo cp openfortigui/openfortigui /usr/bin/openfortigui
dberniell commented 3 years ago

Recompiling dosn't work for me.

doudz commented 3 years ago

you're right, it worked at first but not anymore after reboot...

doudz commented 3 years ago

it's a bit off topic but since the problem is "only" the gui, maybe it's possible to rewrite the gui in Python so it could work out of the box on any system with python and pyqt5 ? (any Ubuntu)

doudz commented 3 years ago

Looking deeper, I found that the problem is the autostart I made, I have put the app in "Startup Applications" and it was working on previous Ubuntu release but now on Ubuntu 20.10 the app starts but the tray icon is missing. If I launch the application manually, it works

So I just delay the autostart by add X-GNOME-Autostart-Delay=60 in ~/.config/autostart/openfortigui.desktop and now it works

dberniell commented 3 years ago

In my case it isn't still showing. I don't have ~/.config/autostart/openfortigui.desktop file or launching the app manually doesn't work either.

doudz commented 3 years ago

Stange, I tried to re-install the deb file and it works manually or with autostart and delay

dberniell commented 3 years ago

Yes strange, I also tried to reinstall deb file version 0.9.3 and didn't work

dberniell commented 3 years ago

Finally sovled adding gnome tray icons extension