Project

General

Profile

Actions

Bug #924

closed

Linux : Share application : can't close the dialog with the mouse

Added by Baptiste Pillot over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
10/19/2022
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

When I share my app, The [X] "close" button does not work with the mouse.

I can close it using my keyboard [Esc] escape key, but not with the mouse.

Should work with the mouse.

Look at the error code on the "AOZ Message" panel when I click the cross :


Files

clipboard-202210190940-wygje.png (74.5 KB) clipboard-202210190940-wygje.png Baptiste Pillot, 10/19/2022 09:40 AM
clipboard-202210191533-orl3m.png (36.5 KB) clipboard-202210191533-orl3m.png Baptiste Pillot, 10/19/2022 03:33 PM
Actions #1

Updated by Baptiste Pillot over 1 year ago

Here is what the Ctrl+Maj+I Atom Javascript console displays when I click on the cross :

publisher.openURLInBrowser()
raoz.js:1418 dirSep is not defined
raoz.js:1419 ReferenceError: dirSep is not defined
    at Object.SystemAPI.openURLInBrowser (/home/baptiste/AOZ_Studio/AOZ_Studio/.aozstudio/packages/aoz-studio/lib/system-api.js:863)
    at Publisher.openURLInBrowser (<anonymous>:102:26)
    at eval (eval at aozhtml_JSExecute (aozhtml.back.js:577), <anonymous>:3:11)
    at aozhtml_JSExecute (aozhtml.back.js:578)
    at JS_Execute (aozhtml.api.js:23)
    at Application.p_close_app.blocks.<computed> (application.js:753)
    at AOZ.runBlocks (raoz.js:1064)
    at AOZ.updateOnce (raoz.js:725)
    at AOZ.loopRun (raoz.js:488)
    at D (mainloop.js:687)
Actions #2

Updated by Baptiste Pillot over 1 year ago

Comparaison du comportement sous Windows et sous Linux, quand on clique sur la croix :

  • Windows :
publisher.openURLInBrowser()
client.Close()
  • Linux :
publisher.openURLInBrowser()
raoz.js:1418 dirSep is not defined
raoz.js:1419 ReferenceError: dirSep is not defined
    at Object.SystemAPI.openURLInBrowser (/home/baptiste/AOZ_Studio/AOZ_Studio/.aozstudio/packages/aoz-studio/lib/system-api.js:863)
    at Publisher.openURLInBrowser (<anonymous>:102:26)
    at eval (eval at aozhtml_JSExecute (VM3167 aozhtml.back.js:577), <anonymous>:3:11)
    at aozhtml_JSExecute (VM3167 aozhtml.back.js:578)
    at JS_Execute (VM3166 aozhtml.api.js:23)
    at Application.p_close_app.blocks.<computed> (VM3209 application.js:753)
    at AOZ.runBlocks (VM3208 raoz.js:1064)
    at AOZ.updateOnce (VM3208 raoz.js:725)
    at AOZ.loopRun (VM3208 raoz.js:488)
    at D (VM3129 mainloop.min.js:8)

Vu sous cette lorgnette c'est tout simple !

  • dirSep n'est pas initialisé dans system-api.js:863 : fait comme partout dans cette librairie : dirSep = PATH.sep.
  • mais ce n'est pas tout : le navigateur internet ne se lance pas, comme c'est sous Windows et sous Mac. Crée le script runbrowserlinux.sh. Dedans je vais chercher le navigateur par défaut paramétré pour le système, et l'appeler.
Actions #3

Updated by Baptiste Pillot over 1 year ago

  • Status changed from New to In Progress
  • Assignee set to Baptiste Pillot
Actions #4

Updated by Baptiste Pillot over 1 year ago

  • Status changed from In Progress to Resolved
  • Target version changed from none to 1.0.0 (B17)

Manque également le script runbrowserlinux.sh dont il y a besoin pour lancer le navigateur au moment de fermer la fenêtre, pour que ça fonctionne comme sous Windows.

C'est tout bon à présent.

Actions #5

Updated by Baptiste Pillot over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF