diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2026-03-09 18:19:48 +0100 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2026-03-09 18:19:48 +0100 |
| commit | b11befe1c9ea84969ebd418e96f7209b772b58d0 (patch) | |
| tree | 4cee94cb12ad4dd24253c2a111b87577f50ed80d /src/plugins/Plugins.vala | |
| parent | d048b2c970f6182a2201b5ba6c29d0d155abc22b (diff) | |
| parent | 8656a544ddcf098e10df1430eecb75902dbc7999 (diff) | |
Merge branch 'release/debian/0.32.15-1'HEADdebian/0.32.15-1master
Diffstat (limited to 'src/plugins/Plugins.vala')
| -rw-r--r-- | src/plugins/Plugins.vala | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/Plugins.vala b/src/plugins/Plugins.vala index cfab7e8..7078680 100644 --- a/src/plugins/Plugins.vala +++ b/src/plugins/Plugins.vala @@ -300,13 +300,6 @@ public int compare_extension_point_names(ExtensionPoint a, ExtensionPoint b) { return a.name.collate(b.name); } -private bool is_shared_library(File file) { - string name, ext; - disassemble_filename(file.get_basename(), out name, out ext); - - return ext == Module.SUFFIX; -} - private void search_for_plugins(File dir) throws Error { debug("Searching %s for plugins…", dir.get_path()); @@ -334,8 +327,9 @@ private void search_for_plugins(File dir) throws Error { break; case FileType.REGULAR: - if (is_shared_library(file)) + if (info.get_content_type() == "application/x-sharedlib") { load_module(file); + } break; default: |
