Skip to content

Install into libexecdir instead of bindir#36

Merged
ryonakano merged 2 commits intoelementary:masterfrom
musicinmybrain:libexecdir
Jul 17, 2024
Merged

Install into libexecdir instead of bindir#36
ryonakano merged 2 commits intoelementary:masterfrom
musicinmybrain:libexecdir

Conversation

@musicinmybrain
Copy link
Contributor

As far as I can tell (and I may well be missing something!), contractor is only executed via the service file, and nothing really needs it to be on the system PATH. So… what if it’s installed in libexecdir instead of bindir, i.e. /usr/libexec instead of /usr/bin on a typical /usr-prefix installation?

@ryonakano
Copy link
Member

I think you need to explicit install_dir in the executable function:

diff --git a/src/meson.build b/src/meson.build
index bb391c4..d0cc4c2 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -30,5 +30,6 @@ executable(
     meson.project_name(),
     files,
     dependencies: dependencies,
-    install : true
+    install: true,
+    install_dir: libexecdir
 )

@musicinmybrain
Copy link
Contributor Author

I think you need to explicit install_dir in the executable function: […]

You’re absolutely right. I must not have tested this properly. I applied your suggestion and confirmed the installed executable path is now in libexecdir. Force-pushing…

Copy link
Member

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed the "Compress" context menu item (that only visible if Contractor is available) in the following apps are visible even after installing this branch and rebooting the system:

  • Files
  • Photos
  • Calendar

Also confirmed the DBus service is visible in D-Spy.

@musicinmybrain
Copy link
Contributor Author

Awesome! Thanks for taking the time to consider and test this PR.

@ryonakano ryonakano merged commit 9005688 into elementary:master Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants