bpozdena / OneDriveGUI

A simple GUI for OneDrive Linux client, with multi-account support.
GNU General Public License v3.0
704 stars 33 forks source link

OneDriveGUI crashes at start when using Gear Lever #155

Closed jsnoriegam closed 5 months ago

jsnoriegam commented 7 months ago

Good day,

I've recently started to use Gearlever to manage my appimages, and all my apps work except onedrivegui, that fails at start with this trace:

Traceback (most recent call last):
  File "/tmp/.mount_gearleqfMvWa/usr/src/OneDriveGUI.py", line 65, in <module>
    from ui.ui_login import Ui_LoginWindow
  File "/tmp/.mount_gearleqfMvWa/usr/src/ui/ui_login.py", line 18, in <module>
    from PySide6.QtWebEngineWidgets import QWebEngineView
ModuleNotFoundError: No module named 'PySide6.QtWebEngineWidgets'

Pretty much like this issue: https://github.com/bpozdena/OneDriveGUI/issues/59

But it worked fine before I used gearlever.

So I did a little reading on the aforementioned issue and i found that you do this check to verify if the app is running as an appimage:

APPIMAGE = True if "tmp/.mount_one" in DIR_PATH.lower() else False

But gearlever prefixes every appimage with "gearlever_" so the mount path is always something like "/tmp/.mount_gearleXXXXX" and so that check always return false.

Is there another way to check if the app is running as appimage?

For the time being I'll be using onedrivegui outside gearlever but I'll like to have all my appimages in one place.

I'm using OneDriveGUI-1.0.3_fix150-x86_64.AppImage.

Thanks.

tl-pierre commented 6 months ago

Same problem for me with GearLever ; if the AppImage file is not renamed, the app works fine.

bpozdena commented 5 months ago

The AppImage detection is already removed in the RC1 branch. QtWebEngine login will be configurable in the GUI Settings window. image