Closed dmoonfire closed 2 years ago
I never had that issue under KDE Neon, I only had it under Manjaro. But I have no idea why, because the AppImage will be made executable in the update process and that process would fail if the "chmod" would fail:
My current workaround is to use a snippet that downloads the latest AppImage and sets the permissions (see https://www.qownnotes.org/installation/appimage.html).
Meanwhile you can use these qc command snippets: 😉
## Install latest QOwnNotes AppImage
- <https://github.com/pbek/QOwnNotes/releases>
```bash
curl -L https://api.qownnotes.org/latest_releases/linux | jq .url | xargs curl -Lo /tmp/QOwnNotes && \
sudo mv /tmp/QOwnNotes /usr/local/bin/QOwnNotes && \
sudo chmod a+x /usr/local/bin/QOwnNotes && \
/usr/local/bin/QOwnNotes --version
```
## Install latest qc on Linux
- <https://github.com/qownnotes/qc/releases>
- `qc completion fish > ~/.config/fish/completions/qc.fish` Generate qc fish completion
```bash
curl https://api.github.com/repos/qownnotes/qc/releases/latest | \
jq '.assets[] | select(.browser_download_url | endswith("_linux_amd64.tar.gz")) | .browser_download_url' | \
xargs curl -Lo /tmp/qc.tar.gz && \
tar xfz /tmp/qc.tar.gz -C /tmp && \
rm /tmp/qc.tar.gz && \
sudo mv /tmp/qc /usr/local/bin/qc && \
/usr/local/bin/qc version
```
I wonder if the problem is the appimagelauncherd
(AILD) integration. When I run it in a tmp folder (/tmp/qon
), it updated and sets the bit. But, when I run it via the integrated version, it doesn't set the flag (plus it uses the previous filename since AILD adds a hash to the end of the file name). So maybe AILD is having a problem because we are messing with it's managed folder.
One reason I'm guessing this is when I say "Run Once" off /tmp/qon
, it does set the executable bit (still doesn't restart) in the /tmp/qon
version (md5sum
says the file has been updated).
On Manjaro I also have the appimage integration, I guess it is also causing the troubles...
This will first trigger in the update from 22.1.0 to 22.1.1, but maybe we can already test in 22.1.0 by faking the old version in the Debug options settings.
There now is a new release, could you please test it and report if it works for you (maybe by faking the old version after the update and doing another update)?
22.1.1 will be released within the next hour. 😉 But you would need to be at 22.1.0 by then to test if the update works correctly...
Thank you. I updated to the latest earlier today so I should be able to test in the morning.
Great! I can at least now update and run the AppImage on Manjaro (when I say "Run once" every time).
This worked beautifully for me, thank you!
Great, thank you for testing! I'll close this then.
Expected behaviour
When the application starts and there is an update, there are two options: Update and Just Download (well more, but these are applicable). I'm currently using
appimagelauncherd
to manage AppImages.When I pick "Update", it downloads, removes the old one, and puts the new one in place. However, it does not set the executable bit on the download so when the application goes to restart, it cannot start it unless I manually run
chmod a+x QOwn*AppImage
.If I use "Just Download", the appimagelauncher integration will pick it up and install it but it does not remove the old one so I ended up with two (or more if I forget to clean up) in the startup menu.
I would prefer to use "Update", but the missing executable bit causes problems.
Actual behaviour
When I use "Update", I expect it to download and then restart into the new version of the AppImage.
Steps to reproduce
Relevant log output in the Log panel
Expand
``` ```Information about the application, settings and environment
Expand
QOwnNotes Debug Information =========================== ## General Info **Current Date**: `Wed Dec 29 10:22:52 2021` **Version**: `21.12.8` **Build date**: `Dec 29 2021` **Build number**: `930` **Platform**: `linux` **Operating System**: `KDE neon User - Plasma 25th Anniversary Edition` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `AppImage` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `/home/dmoonfire/.config/PBE/QOwnNotes.conf` **Application database path**: `/home/dmoonfire/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite` **Application arguments**: `/home/dmoonfire/bin/appimages/QOwnNotes-x86_64_f979fad769f97d1cfd724369c3044853.AppImage` **Qt Debug**: `0` **Locale (system)**: `en_US` **Locale (interface)**: *empty* **Primary screen resolution**: `1920x1080` **Icon theme**: `breeze-dark-qownnotes` **Notes in current note folder**: `169` **Calendar items**: `350` **Enabled scripts**: `2` ## Server Info **serverUrl**: `https://tanxe.typewriter.press` **appIsValid**: `yes` **notesPathExists**: `yes` **serverVersion**: `22.2.0.2` **appVersion**: *empty* ## Spellchecking **Enabled**: `true` **Selected language**: `en_US` **Language codes**: `en_US` **Language names**: `American English (United States)` **Application dictionaries path**: `/home/dmoonfire/.local/share/PBE/QOwnNotes/dicts` ## Note folders **currentNoteFolderId**: `1` ### Note folder `default` **id**: `1` **isCurrent**: `yes` **activeTagId**: `0` **localPath**: `/home/dmoonfire/nextcloud/notes` **remotePath**: `notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `yes` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: `Household` **database file**: `/home/dmoonfire/nextcloud/notes/notes.sqlite` ## Cloud connections ### Cloud connection `MASKED` **id**: `1` **isCurrent**: `yes` **serverUrl**: `https://MASKED **username**: `dmoonfire` **accountId**: *empty* ## Enabled scripts ### Script `ATX Headline` **id**: `1` **path**: `/home/dmoonfire/.local/share/PBE/QOwnNotes/scripts/atx-headline/atx-headline.qml` **variablesJson**: *empty* **identifier**: `atx-headline` **version**: `0.0.1` **minAppVersion**: `20.6.0` ### Script `Fix list numbers` **id**: `2` **path**: `/home/dmoonfire/.local/share/PBE/QOwnNotes/scripts/fix-list-numbers/fix-list-numbers.qml` **variablesJson**: *empty* **identifier**: `fix-list-numbers` **version**: `1.0.0` **minAppVersion**: `18.04.3` ## Settings **ActiveNoteHistoryItem** (NoteHistoryItem): `