Compilation: update-desktop-database not found on macos #96
Labels
No labels
bug
client
code-quality
duplicate
enhancement
help wanted
in progress
invalid
question
ui
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: coderkun/mcg#96
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello! Thank you for this software. I've yet to actually try it due to this compilation error, but the impression of the philosophy and design from the website seem delightful!
I'm attempting to compile the program as instructed in the readme, but I encounter an error
I'm using macOS 13.1 on an M1 ARM aarch64 Apple computer. I'm not very familiar with GUI development, but I believe that
update-desktop-database
may be a Linux specific program that is not available on macOS.How do I compile this program?
Thanks for your help,
Louis
update-desktop-database
is a standard thing on Linux desktops (from desktop-file-utils) and used by Meson.If you don’t have it available, try to set
update_desktop_database
inmeson.build
tofalse
.Hey @coderkun, that's right, but I'm using macOS rather than Linux here.
How do I build it for macOS? I'm not familiar with meson so I tried removing the
gnome
section frommeson.build
. With that the compile commands would not error, but I couldn't find an executable within the build directory.Thank you
I would not remove the entire Gnome section but only disable individual features like
update_desktop_database
.If you use
meson build
andninja -C build
to build the application, you can useninja -C build install
to install it. The--prefix
flag can be used to change the installation directory. If you want to test it without installing, run a dev environment as explained in the readme under Running/Testing.Thank you.
I've followed the steps and when I attempt to run the
$PREFIX/bin/mcg
binary it outputs many errors and then crashes due to an invalid shebang.If I run it with Python directly it fails when attempting to import a module named
gi
. Do you know what Python package this belongs to?gi
are the Gnome python bindings. Did you read the README? It lists all dependencies.I believe I have them all installed. Forgive me, I'm not familiar with the Python GUI ecosystem, is there something else I need to beyond install GTK to get those bindings?
Just to check, am I right in thinking that this project supports macOS? The "OS: cross platform" on the website made me think it was Linux + Windows + macOS, but it seems the code is Linux only currently?
There is no platform-specific code in this application. However, you will need to check the dependencies yourself.
I am in the process of rewriting the application in
go
, which might make this easier. But it will take some time and I won’t be able to test it on Mac.Ah that's very exciting to hear! I'll try again with that one when it is released, I find Go applications much easier to install and distribute. Thank you for your help!
I spent a lot of time working on a go version but decided to stick with python for now.