Ubuntu gnome desktop file name #1019
Comments
You have researched the problem pretty well. Unfortunately I have no secret information on how to make it work in both conditions, please let me know if you find anything out! |
I also ran into this, and can confirm this temporary workaround:
|
That was the previous name, see #933. |
Yup, this also seems to works! Thanks for that |
awesome! |
18.10.3
|
There now is a new release, could you please test it and report if it works for you? |
Installed snap from Ubuntu Software: |
I'm not sure how Gnome (or are you using Unity?) is handling desktop files from snaps. If you are using the stable channel this desktop file is used: https://github.com/pbek/QOwnNotes/blob/develop/snap/gui/PBE.QOwnNotes.desktop |
Could you test the Ubuntu PPA, AppImage or Flatpack of QOwnNotes if you have the same problem? see https://www.qownnotes.org/installation |
I am running Ubuntu 19.10 with Gnome Tested AppImage - same story. I created a .desktop file with Arronax and it worked well(placed in /usr/share/applications), but I wasn't able to edit the one in snap. may be unrelated: |
Same problem on Gnome 3.36.3 while using the snap version (20.8.10). Could we reopen the ticket given that the problem persists? |
Doesn't make a lot difference as long nobody knows how to fix it. |
If there is anything I can do to help debug I'm more than happy to help. Let me know. |
The only thing that comes to mind is to play with the desktop file or research how the favorites in Gnome work and why it has troubles detecting the application correctly. I don't have this issue under KDE. |
Here is an ugly workaround. If you rename the file The way I found this was by observing the naming convention of the desktop files of all of my snaps. Any snap with desktop file not named like @pbek Is the naming you are using valid? If yes, looks like an upstream problem as you hinted originally. |
I guess snapcraft chose that name. The original file that is used is https://github.com/pbek/QOwnNotes/blob/develop/build-systems/snap/snapcraft/snap/gui/PBE.QOwnNotes.desktop |
Great, I now updated the Launchpad Snap config. We'll see at the next release. |
20.9.6
|
There now is a new release, could you please test it and report if it works for you? |
@pbek Sorry for the delay. It seems that the duplicate desktop files problem is back but everything else works as expected. I really don't understand why this is happening as we tested together the latest/edge version and it fixed the duplicate desktop files issue.
|
Thank you for the feedback. I don't understand it. The removal and build process are the same on snapcraft.io and launchpad. |
No |
@pbek If you download the snap on stable (rev 7455) and check folder /meta/gui/ in the archive you will find 2 desktop files. On the other hand if you download the snap on edge (rev 7457) you will get one desktop file. How do you deploy the snaps? Do you use travis or some other CI tool? Is there a chance that stable and edge have different configs on their releases? |
|
That's because the prod uses the source archive, that is made from the
If no file is deleted the build process breaks. I had that when there was the |
I see, thanks for clarifying. I'm running out of ideas... What we see could be explained by a silent failure of the |
20.9.9
The 20.9.9 release on https://github.com/pbek/QOwnNotes/releases will have an amd64 snap built on GitHub (currently building on https://github.com/pbek/QOwnNotes/runs/1150478719?check_suite_focus=true). Could you please test that, maybe I'll manage to put it into the snap store automatically. |
Just to confirm you want me to download the snap from github and install it manually? If that's what you mean, I don't think this is possible without turning off the snap confinement which might return different results. Is it possible to upload it on snapstore?
You meant to link to the snap version, not the Appimage right? BTW I did check the contents of the snap and it seems that it does not have the 2 icons inside. So it should be OK from that perspective. |
To do that I need to invest some more hours. I will only attempt that if the snap works as desired.
sorry, my bad. |
Gotcha. Is there any way you can manually put that in snapcraft? Just trying to see if there is a way to avoid turning off the confinement while not adding much overload to you. |
|
@pbek lol. yeah that's what I wanted to avoid :P Tested and it works like a charm. Only 1 desktop file, the favourites work fine etc. :) |
to my knowledge the confinement is still in place since it isn't a "--classic" snap
sounds great, thank you for testing! |
20.9.10
|
There now is a new stable release building, could you please test it and report if it works for you? |
The new stable snap is already in the store. |
@pbek Sorry man, it's a very busy week. I just tested it. Everything works exactly as you expect: the favourites, the number of desktop files, the program, etc. I think it's time to close this epic saga ticket :) Good job and thank you! |
Awesome! Thank you for your patience! |
Expected behaviour
Add to favorites button works in ubuntu 18.
Actual behaviour
Add to favorites missing.
Steps to reproduce
Open app and right click in dock to see missing menu, try renaming solution and now it shows.
Version 18.09.01
After reading stack exchange I found that desktop links cannot be added to favorites unless their file name matches the window name. Checking into this it seems the file is named PBE.QOwnNotes.desktop and when renamed to QOwnNotes.desktop the problem is fixed, as per the above link. However, I did find #933 that caused this rename to happen in the first place. Is it possible to get the default desktop link named properly to work in ubuntu?
The text was updated successfully, but these errors were encountered: