Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. "Read more...":https://support.plan.io/news/187

Bug #857675

closed

Treat client option file load failure as first run

Added by Jacob Nevins about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Client
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

When options_load() positively decides that its option file has a certain path, but fails to load it, it mostly applies the same defaults as a completely fresh run; but it doesn't do client_option_adjust_defaults().

I noticed this when using the FREECIV_OPT environment variable pointing to a nonexistent file to simulate a fresh installation. But I think it would be the right behaviour for any case where we found an option file but couldn't even open it.

I think this bug has very little practical effect currently; only Gtk clients adjust options, and on modern systems they never actually make any adjustment (#765941-6).


Files

m-30-26-option-load-fail-adjust.patch (810 Bytes) m-30-26-option-load-fail-adjust.patch master, S3_0, S2_6 Jacob Nevins, 2020-02-01 03:00 PM
m-30-26-option-load-fail-first-run.patch (1.17 KB) m-30-26-option-load-fail-first-run.patch master, S3_0, S2_6: supersedes previous patch Jacob Nevins, 2020-02-02 04:18 AM

Related issues

Blocks Freeciv - Bug #765941: Gtk3.x automatic initial setting of "Arrange widgets for small displays" is ineffectiveClosedJacob Nevins

Actions
Blocks Freeciv - Bug #858203: client_option_adjust_defaults() runs too earlyClosedJacob Nevins

Actions
Actions #1

Updated by Jacob Nevins about 3 years ago

  • Related to Bug #765941: Gtk3.x automatic initial setting of "Arrange widgets for small displays" is ineffective added
Actions #2

Updated by Jacob Nevins about 3 years ago

Actions #3

Updated by Jacob Nevins about 3 years ago

  • Subject changed from Option adjustments not applied if loading option file fails to Treat client option file load failure as first run
  • Status changed from Resolved to In Progress

Going to rework this as part of a bigger rework of the area. I don't plan to commit the existing patches.

Actions #4

Updated by Jacob Nevins about 3 years ago

  • Related to deleted (Bug #765941: Gtk3.x automatic initial setting of "Arrange widgets for small displays" is ineffective)
Actions #5

Updated by Jacob Nevins about 3 years ago

  • Blocks Bug #765941: Gtk3.x automatic initial setting of "Arrange widgets for small displays" is ineffective added
Actions #6

Updated by Jacob Nevins about 3 years ago

Actions #7

Updated by Jacob Nevins about 3 years ago

  • Blocks Bug #858203: client_option_adjust_defaults() runs too early added
Actions #8

Updated by Jacob Nevins about 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF