albertlauncher / albert

A fast and flexible keyboard launcher
https://albertlauncher.github.io
Other
7.21k stars 303 forks source link

Configuration lost from 0.23.0 to 0.24.1 #1411

Closed Massimo-B closed 2 months ago

Massimo-B commented 2 months ago

Package source

https://codeberg.org/Case_Of/gentoo-overlay

App logs

-

Current Behavior

The configuration is lost after updating from 0.23.0 to 0.24.1. Did the location change? How can I restore my config?

Expected Behavior

-

Anything else?

-

ManuelSchneid3r commented 2 months ago

Is it really lost? Or did you just search the file? The location moved to the config dir.

Old one will be moved: https://github.com/albertlauncher/albert/blob/cccd617b5e930bf491bdd7e6735d1f6a9b20e7d3/src/app/app.cpp#L573-L589

Massimo-B commented 2 months ago

Ok, I've seen, some parts of the config have been migrated. I noticed that the applications module was not enabled anymore:

diff /mnt/snapshots/home/home.20240624T065200+0200/mb/.config/albert.conf ~/.config/albert/config
...

The old config had a section [applications_xdg], the new config now has 2 sections [applications] and [applications_xdg]:

# grep \\[applications /mnt/snapshots/home/home.20240624T065200+0200/mb/.config/albert.conf ~/.config/albert/config 
/mnt/snapshots/home/home.20240624T065200+0200/mb/.config/albert.conf:[applications_xdg]
/home/mb/.config/albert/config:[applications]
/home/mb/.config/albert/config:[applications_xdg]
ManuelSchneid3r commented 2 months ago

Yes indeed the apps plugin had "breaking" changes. I merged the linux an macos code to get a unified applications plugin as a next step towards a unified platform independent public plugin interface that may serve as foundation for fancy stuff like "open file with…" and such.

ManuelSchneid3r commented 2 months ago

0.24 was a quite huge release. i know it may be annoying for users to read through these changelogs. therefore i try to split the user and dev (API) relevant parts. but yeah i dont know how to inform you guys otherwise.

Massimo-B commented 2 months ago

Ok, thanks. Some things just need to be done..

Usually I don't parse the Changelog for every project I use. For severe changes that require a re-configuration, you could point to in a dialog when starting the first time with that new version. For the 0.24 migration it means, that the application module needs to be reconfigured.

ManuelSchneid3r commented 2 months ago

For severe changes that require a re-configuration, you could point to in a dialog when starting the first time with that new version.

Actually you (should) get a notification on a major update with a link to the news. Albert is (still) WIP. For as long as I have ideas to fundamentally improve up to a point where I feel a launcher worth its name should actually be it will stay WIP and major releases will probably always improve things for you in a way you might want to know it. Maybe I should point out core changes of a release.

E.g for 0.24 from user perspective this would be the unified and improved (diracritics and order independent) match tooling and from the dev perspective the enormous simplification of the CMake/C++ API and ability to finally build plugins without cloning the entire project. The upstream package ships the required devel files. Imho, if you are familar with both C++ and Python, the native interface is even easier to use now since for the small overhead inherent to the language you get a huge amount of benefits from the tooling provided, the qt framework and the language itself.