[okular] [Bug 385468] "Missing \"Version=5\", file '/usr/share/kconf_update/okular.upd' will be skipped."

Albert Astals Cid bugzilla_noreply at kde.org
Thu Oct 19 22:07:48 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=385468

--- Comment #5 from Albert Astals Cid <aacid at kde.org> ---
(In reply to Matthew Dawson from comment #4)
> The original reason this was added was that KDE4 update scripts would get
> run by KF5, creating a configuration file.  Then the KDE4 migration would
> not run, resulting in users losing their settings.  This was put in at the
> time to stop that from occurring.
> 
> Ideally, kconf_update would not create an empty configuration file for a
> migration just to note the migration had been run.  However, there are some
> side effects to that change which make it more complicated to implement, and
> thus has not yet happened.
> 
> Without fixing kconf_update, I don't want to back out the change as it still
> has a good reason.  I also like that all the update files now have an
> enforced version header, which will make it easy to update the format in the
> future.  And most configuration file update scripts should now have the
> header if required, so there will likely be more pain to revert it at this
> time.

Ok

> 
> However, you do raise the good point that this requirement is not well
> communicated.  That should definitely be fixed.  Is there any particular
> place you would have expected this information to be present?

the kde-devel mailing list seems like a good place to me to warn kde developers
that a change like this is happening, since otherwise we're not going to see it
easily.

> 
> Also, if the configuration update script is for KDE4 configuration files,
> you can skip putting a Version=5 header at the top.  Instead, you can have
> the fully updated file migrated to the new configuration file location and
> start with a fresh update script for KF5.  Or continue adding to the file. 
> Whatever works best for okular.

For my application there's no such thing as "KDE4" configuration files, they
are just configuration files, and ideally one should be able to go from an old
version (based on kdelibs4, irrelevant) where the okular.upd had not been run
to the new version (based on KF5, irrelevant) and get okular.upd run and then
the config be migrated to the new location.

As I understand you're saying that this is impossible and thus i basically
should just remove the .upd file?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list