-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Pull down entry chum-launch
is not displayed on older Sailfish-OS releases
#290
Comments
While on the topic: Are we happy about the position of the menu entry (bottom-most one)? I found that IF a package is updatable, the "Update" menu entry appears. Before #266, that was the bottom-most entry. Now, the menu is a bit inconsistent:
If the package is updatable and launchable we have
Maybe it's just me, but while going through several updatable packages one at a time, sometimes I updated, sometimes I launched despite wanting to update. It was annoying enough for me to wish the |
On the issue at hand:
So the only thing I can see why the entry would not appear is either OR, javascript evaluation of that is different. @olf can you try changing the QML to
or even
it shouldn't make a difference AFAICS but with javascript you never know. Now, sailfishos-chum-gui/src/chumpackage.cpp Line 268 in ffa557d
This is the case for the package you are testing with? Now, sailfishos-chum-gui/src/chumpackage.cpp Line 56 in ffa557d
Again I can't see how this could be |
Meh let's just debug print the whole thing. @Olf0 please add these debug prints and see what the console sais:
(Just a QML change, so no need for a rebuild. Just edit on-device.) |
I fully agree that it should be placed above "Update", because that is the most common operation, but placing it right next to "Remove" is dangerous; I am glad that the rarely (rsp. "rareliest") used entry "Source code" separates "Remove" on the top of the menu from the rest of the entries. |
Originally it complained about Next try, now it complains about the second line which is supposed to generate debug output ( Last try, same story, now WRT |
OK lets guard against those null objects using a double-not, and be super careful. Please try this:
|
Now the output is … nothing! I.e. no output at all:
It tried e.g. Barcode, Audioworks, Aenigma and Bugger, accessing all four via both QML pages "Applications" and "Installed packages". P.S. / Edit: |
O.K., with
I see
and the menu entry is visible. 🎉 I.e. the property |
Cool. Yes the property appears to be empty. Hmmm. There must be a bug in |
Lets look at it:
So it could return early in Then we do And, the whole thing is async, it can also be that it simply takes too long and isn't finished before the UI wants to look at the desktopFile property. (After all packagekitd tends to be busy a lot when package managers are active). Finally, I'm not sure why the determination of package file contents is done in @jaimeMF any comments? |
My experience with Is there a way I can emulate Minor nitpick: It is SFOS 3.2.1 I tested on, not 3.1.x. |
I thought it was a reasonable place, since to determine if it is installed it checks whether the version is null or not. |
Well, from my perspective this is a case of (pun intended), an unspecific question results in an unspecific reply. 😜 More seriously:From @nephros' statements I gather, that there a few corner-cases in which the current code may fail. Which makes it likely that more than just my XperiaX@SFOS3.2.1 is affected.
These two approaches are not mutually exclusive, i.e. they might be part of a two pronged strategy to determine the culprit. |
I have added some log in jaimeMF@cc5e6af to see the details of the process. It will print the version, package id, type, files and whether it finds the desktop file or not. With the package id (pkid) you can get the file list on the console with: $ pkcon get-files "harbour-barcode;1.0.53-1.12.1.jolla;armv7hl;installed"
Operación: Obteniendo lista de archivos
Estado: Esperando en cola
Estado: Comenzando
Estado: Consultando
Estado: Finalizado
Resultados:
Archivos del paquete
/usr/bin
/usr/bin/harbour-barcode
/usr/share/applications/harbour-barcode.desktop
/usr/share/harbour-barcode
/usr/share/harbour-barcode/qml
/usr/share/harbour-barcode/qml/components
/usr/share/harbour-barcode/qml/components/Buzz.qml
.... |
The pull down entry
chum-launch
(text: "Start application") inqml/pages/PackagePage.qml
lines 58-70 is not displayed on older Sailfihsh-OS releases. Currently only two test points were taken: It works fine on SailfishOS 4.5.0, but fails to show on SailfishOS 3.2.1. Curiously no warning or error message is emitted at the command line, when it does not show and this pulley menu is used, see that section "TL;DR".The text was updated successfully, but these errors were encountered: