Skip to content

Commit

Permalink
Prevented roxterm-config trying to parse the same options as roxterm
Browse files Browse the repository at this point in the history
  • Loading branch information
realh committed Dec 2, 2023
1 parent 92b3bc7 commit 911e857
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*~
*.lo
*.la
.cache
Makefile
Makefile.in
.deps
Expand Down
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
roxterm (3.14.3-1) UNRELEASED; urgency=medium

* New upstream version:
+ Prevent error messages caused by roxterm-config trying to parse
the same set of options as roxterm.

-- Tony Houghton <h@realh.co.uk> Sat, 02 Dec 2023 18:21:21 +0000

roxterm (3.14.2-1) unstable; urgency=high

* New upstream version:
Expand Down
2 changes: 1 addition & 1 deletion src/capplet.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ int main(int argc, char **argv)
#endif

gtk_init(&argc, &argv);
global_options_init(&argc, &argv, TRUE);
global_options_init(&argc, &argv, FALSE);
global_options_apply_dark_theme();

resources_access_icon();
Expand Down
4 changes: 3 additions & 1 deletion src/globalopts.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ void global_options_init(int *argc, char ***argv, gboolean report)
global_options = options_open("Global", "roxterm options");
correct_schemes();
}
global_options_parse_argv(argc, argv, report);
/* roxterm-config doesn't use the same options as the main app */
if (!g_str_has_suffix((*argv)[0], "-config"))
global_options_parse_argv(argc, argv, report);
if (!global_options_bindir)
{
global_options_init_bindir((*argv)[0]);
Expand Down

0 comments on commit 911e857

Please sign in to comment.