diff --git a/data/io.elementary.code.desktop.in.in b/data/io.elementary.code.desktop.in.in index c4b51bf5b..b0bf43b37 100644 --- a/data/io.elementary.code.desktop.in.in +++ b/data/io.elementary.code.desktop.in.in @@ -4,7 +4,6 @@ Name=@NAME@ Comment=Edit code files GenericName=Code Editor Exec=@EXEC_NAME@ %U -Icon=io.elementary.code Terminal=false Categories=Development;GTK;IDE;WebDevelopment; Keywords=text;IDE;scratch;code; diff --git a/data/io.elementary.code.gschema.xml b/data/io.elementary.code.gschema.xml index 397b293ed..54a7f6056 100644 --- a/data/io.elementary.code.gschema.xml +++ b/data/io.elementary.code.gschema.xml @@ -1,24 +1,24 @@ - + - + - + - - + + "Normal" The saved state of the window. The saved state of the window. @@ -65,7 +65,7 @@ - + ['brackets-completion', 'detect-indent', 'editorconfig'] Enabled Plugins @@ -106,7 +106,7 @@ Highlight Matching Brackets Whether Code should highlight matching brackets. - + "For Selection" Draw spaces and tabs with symbols Draw spaces and tabs with symbols. "Never" is deprecated and not exposed in the UI. @@ -187,7 +187,7 @@ Whether search term is a regex expression Whether the search should use the search term as a regex expression for matching. - + 'mixed' When text search is case sensitive Whether the text search is case sensitive never, always or only when search term is mixed case @@ -199,7 +199,7 @@ - + 'None' Default PasteBin text highlight @@ -217,7 +217,7 @@ - + [] Opened folders. diff --git a/data/meson.build b/data/meson.build index b28891a23..8d79f5177 100644 --- a/data/meson.build +++ b/data/meson.build @@ -25,6 +25,7 @@ install_data([ install_data( 'io.elementary.code.gschema.xml', 'io.elementary.code.plugins.spell.gschema.xml', + rename: ['com.github.jeremypw.code-testing.gschema.xml', 'com.github.jeremypw.code-testing.plugins.spell.gschema.xml'], install_dir: get_option('prefix') / get_option('datadir') / 'glib-2.0' / 'schemas' ) @@ -46,7 +47,7 @@ desktop_in_file = configure_file( desktop_file = i18n.merge_file( input: desktop_in_file, - output: 'io.elementary.code.desktop', + output: meson.project_name() + '.desktop', po_dir: meson.project_source_root () / 'po' / 'extra', type: 'desktop', install_dir: get_option('datadir') / 'applications', diff --git a/meson.build b/meson.build index 70b437522..3b4a978f5 100644 --- a/meson.build +++ b/meson.build @@ -1,10 +1,12 @@ project( - 'io.elementary.code', + 'com.github.jeremypw.code-testing', 'vala', 'c', meson_version: '>= 0.58.0', version: '7.4.0' ) +original_project_name = 'io.elementary.code' + add_project_arguments([ '-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()) ], @@ -41,7 +43,7 @@ posix_dep = meson.get_compiler('vala').find_library('posix') vte_dep = dependency('vte-2.91') code_resources = gnome.compile_resources( - 'code-resources', 'data/' + meson.project_name() + '.gresource.xml', + 'code-resources', 'data/' + original_project_name + '.gresource.xml', source_dir: 'data' ) diff --git a/plugins/fuzzy-search/fuzzy-search-indexer.vala b/plugins/fuzzy-search/fuzzy-search-indexer.vala index 4c02bd344..f1a8df81e 100644 --- a/plugins/fuzzy-search/fuzzy-search-indexer.vala +++ b/plugins/fuzzy-search/fuzzy-search-indexer.vala @@ -75,7 +75,7 @@ public class Scratch.Services.FuzzySearchIndexer : GLib.Object { processing_queue = new Gee.ConcurrentList (); project_paths = new Gee.HashMap (); - folder_settings = new GLib.Settings ("io.elementary.code.folder-manager"); + folder_settings = new GLib.Settings (Constants.PROJECT_NAME + ".folder-manager"); folder_settings.changed["opened-folders"].connect (handle_opened_projects_change); } diff --git a/plugins/fuzzy-search/fuzzy-search.vala b/plugins/fuzzy-search/fuzzy-search.vala index c28a54450..89199f4c3 100644 --- a/plugins/fuzzy-search/fuzzy-search.vala +++ b/plugins/fuzzy-search/fuzzy-search.vala @@ -54,7 +54,7 @@ public class Scratch.Plugins.FuzzySearch: Peas.ExtensionBase, Scratch.Services.A window = w; - folder_settings = new GLib.Settings ("io.elementary.code.folder-manager"); + folder_settings = new GLib.Settings (Constants.PROJECT_NAME + ".folder-manager"); add_actions (); folder_settings.changed["opened-folders"].connect (handle_opened_projects_change); }); @@ -118,9 +118,7 @@ public class Scratch.Plugins.FuzzySearch: Peas.ExtensionBase, Scratch.Services.A } private void fuzzy_find () { - var settings = new GLib.Settings ("io.elementary.code.folder-manager"); - - string[] opened_folders = settings.get_strv ("opened-folders"); + string[] opened_folders = folder_settings.get_strv ("opened-folders"); if (opened_folders == null || opened_folders.length < 1) { return; } diff --git a/src/FolderManager/FileView.vala b/src/FolderManager/FileView.vala index 61ea03789..3083122af 100644 --- a/src/FolderManager/FileView.vala +++ b/src/FolderManager/FileView.vala @@ -73,7 +73,7 @@ public class Scratch.FolderManager.FileView : Code.Widgets.SourceList, Code.Pane icon_name = "folder-symbolic"; title = _("Folders"); - settings = new GLib.Settings ("io.elementary.code.folder-manager"); + settings = new GLib.Settings (Constants.PROJECT_NAME + ".folder-manager"); git_manager = Scratch.Services.GitManager.get_instance ();