diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2026-03-08 11:11:23 +0100 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2026-03-08 11:11:23 +0100 |
| commit | 1ef9b86df1cca6dde71529f03b66407953d000c9 (patch) | |
| tree | b3d41d58cbb1d52e3871e40258539ac760cd265e /src/plugins/Plugins.vala | |
| parent | fa4d70ea3101f5a70b33977ba9b7673ddfb36762 (diff) | |
| parent | 210cc61ee4191465805a770881235c677041f929 (diff) | |
Update upstream source from tag 'upstream/0.32.15'
Update to upstream version '0.32.15'
with Debian dir ab0b4536d524ccbb338db4641523f7abd3f9a2fd
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: |
