danvratil / harbour-sailslack

Unofficial Slack client for Sailfish OS
GNU General Public License v3.0
4 stars 4 forks source link

No signin on 0.3 #38

Closed mschilli87 closed 3 years ago

mschilli87 commented 3 years ago

I installed the latest version but am unable to login.

When I launch harbour-sailslack, I get

[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Setting last version 0.3
library "/vendor/lib/egl/libGLESv2S3D_adreno.so" not found
[D] unknown:0 - NotificationListener set up

When I select 'Sign into a Workspace' from the Pulley menu, nothing happens and I get the following cosole output:

greHome from GRE_HOME:/usr/bin
libxul.so is not found, in /usr/bin/libxul.so
Created LOG for EmbedLiteTrace
[W] modifyPageStack:113 - Error while modifying page stack: Error: Error while loading page: file:///usr/share/harbour-sailslack/qml/pages/LoginPage.qml:139 Type LoginWebView unavailable
file:///usr/share/harbour-sailslack/qml/pages/LoginWebView.qml:5 Type WebViewFlickable unavailable
file:///usr/lib/qt5/qml/Sailfish/WebView/WebViewFlickable.qml:44 Cannot assign to non-existent property "verticalOffset"

[W] unknown:483 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.js:483: Error: Error while loading page: file:///usr/share/harbour-sailslack/qml/pages/LoginPage.qml:139 Type LoginWebView unavailable
file:///usr/share/harbour-sailslack/qml/pages/LoginWebView.qml:5 Type WebViewFlickable unavailable
file:///usr/lib/qt5/qml/Sailfish/WebView/WebViewFlickable.qml:44 Cannot assign to non-existent property "verticalOffset"

Loaded xulDir:/usr/lib/xulrunner-qt5-45.9.1/libxul.so, appDir:/usr/bin
Created LOG for EmbedLite
EmbedLiteExt virtual nsresult EmbedChromeManager::Observe(nsISupports*, const char*, const char16_t*):82: obj:(nil), top:app-startup
EmbedLiteExt virtual nsresult EmbedTouchManager::Observe(nsISupports*, const char*, const char16_t*):86: obj:(nil), top:app-startup
EmbedLiteGlobalHelper app-startup
EmbedLiteSyncService app-startup
PREFS SERVICE INITAILIZED
EmbedPrefService app-startup
EmbedliteDownloadManager initialized
UserAgentOverrideHelper app-startup
1626237093917   addons.manager  DEBUG   Application has been upgraded
1626237094422   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1626237094438   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1626237094543   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1626237094554   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1626237094558   addons.manager  DEBUG   Starting provider: XPIProvider
1626237094561   addons.xpi      DEBUG   startup
1626237094564   addons.xpi      INFO    SystemAddonInstallLocation directory is missing
1626237094569   addons.xpi      DEBUG   checkForChanges
1626237094574   addons.xpi      DEBUG   Loaded add-on state from prefs: {}
1626237094580   addons.xpi      DEBUG   getInstallState changed: false, state: {}
1626237094583   addons.xpi      DEBUG   Empty XPI database, setting schema version preference to 17
1626237094586   addons.xpi      DEBUG   No changes found
1626237094597   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
1626237094600   addons.manager  DEBUG   Provider finished startup: XPIProvider
1626237094602   addons.manager  DEBUG   Starting provider: LightweightThemeManager
1626237094603   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
1626237094605   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
1626237094608   addons.manager  DEBUG   Starting provider: GMPProvider
1626237094625   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
1626237094628   addons.manager  DEBUG   Provider finished startup: GMPProvider
1626237094629   addons.manager  DEBUG   Starting provider: PluginProvider
1626237094631   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
1626237094633   addons.manager  DEBUG   Provider finished startup: PluginProvider
1626237094635   addons.manager  DEBUG   Completed startup sequence
1626237094958   addons.xpi-utils        DEBUG   Starting async load of XPI database /home/nemo/.cache/harbour-sailslack/harbour-sailslack/.mozilla/extensions.json
Created LOG for EmbedPrefs
1626237095258   addons.xpi-utils        DEBUG   Rebuilding XPI database with no extensions
JavaScript error: jar:file:///usr/lib/xulrunner-qt5-45.9.1/omni.ja!/components/nsSearchService.js, line 4049: TypeError: this._defaultEngine is null

On closing, I get

JavaScript error: jar:file:///usr/lib/xulrunner-qt5-45.9.1/omni.ja!/components/nsSearchService.js, line 4049: TypeError: this._defaultEngine is null
[D] unknown:0 - Application terminating

This is on a Sailfish OS 3.3.0.16 (Rokua) community port.

Any pointers would be highly appreciated.

danvratil commented 3 years ago
file:///usr/lib/qt5/qml/Sailfish/WebView/WebViewFlickable.qml:44 Cannot assign to non-existent property "verticalOffset"

This is the problem. Not sure what to make out of it - a bug in WebViewFlickable?

b100dian commented 3 years ago

I think sailfish-component-webview first appeared in Sailfish 3.4, so maybe we're getting access to a precursor of it which is not as .. ready? (L.E. The QtWebView of before was available in previous sailfish versions but it didn't work anymore on the slack login page)

@mschilli87 to unblock you we'll need to give you access to the other authentication methods which are available from the pulley menu if the qml would be parsed..

Can you try backing up LoginPage.qml and then modifiy it to remove the entire LoginWebView node and set the visible: true on the SilicaFlickable node?

This should present you directly with the page that allows you to copy the login URL and use it in the browser (e.g. on your computer) and then paste the redirect url.

mschilli87 commented 3 years ago

@b100dian: Thank you for the precise instructions. I followed your instructions at it worked out perfectly.

b100dian commented 3 years ago

Well, you're the first one to use the alternative login options, but no the way I imagined it will be:)