gtk-js-app
gtk-js-app copied to clipboard
NameHasNoOwner DBus error
I can build the code correctly and execute the program with "com.example.Gtk.JSApplication" , but when I launch it from the desktop environments (Gnome) it doesn't start. Looking at .application file, it try to execute gapplication launch com.example.Gtk.JSApplication and if I do this command I get this error: error sending Activate message to application: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer.
No idea how I can try to fix this
Hi! Thanks for your report.
How did you install the app? Did you install the .service file in the correct dbus directory? What happens if you run "com.example.Gtk.JSApplication" from the command line?
Also, if you're running dbus-broker (Fedora 30), on occasion it helps to run:
gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ReloadConfig
after installation, or alternatively logout/login
HI, thank for your help.
How did you install the app?
not sure, but I think with the usual meson build --prefix=/usr, ninja, ninja install
Did you install the .service file in the correct dbus directory?
not on my own
What happens if you run "com.example.Gtk.JSApplication" from the command line?
it start and run without any problems
Also, if you're running dbus-broker (Fedora 30), on occasion it helps to run
yes I'm on Fedora 30, giving the command doesn't solve the issue.
I've tryed to clone the repository and rebuild the code, and I've got this error:
[medeo@localhost gtk-js-app]$ meson build --prefix=/usr
The Meson build system
Version: 0.50.1
Source dir: /home/medeo/Coding/js/gtk-js-app
Build dir: /home/medeo/Coding/js/gtk-js-app/build
Build type: native build
Project name: gtk-js-app
Project version: 1.0.0
Native C compiler: cc (gcc 9.0.1 "cc (GCC) 9.0.1 20190312 (Red Hat 9.0.1-0.10)")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Configuring config.h using configuration
Program gjs found: YES (/usr/bin/gjs)
WARNING: Project targetting '>= 0.36.0' but tried to use feature introduced in '0.37.0': gresource_bundle arg in gnome.compile_resources
Found pkg-config: /usr/bin/pkg-config (1.6.1)
Configuring com.example.Gtk.JSApplication using configuration
WARNING: Project targetting '>= 0.36.0' but tried to use feature introduced in '0.38.0': install_mode arg in install_data
WARNING: Project targetting '>= 0.36.0' but tried to use feature introduced in '0.37.0': i18n.merge_file
Program ../meson/meson_post_install.py found: YES (/home/medeo/Coding/js/gtk-js-app/data/../meson/meson_post_install.py)
WARNING: Project targetting '>= 0.36.0' but tried to use feature introduced in '0.50.0': install arg in configure_file
Configuring com.example.Gtk.JSApplication.service using configuration
Program meson/meson_post_install.py found: YES (/home/medeo/Coding/js/gtk-js-app/meson/meson_post_install.py)
Build targets in project: 7
WARNING: Project specifies a minimum meson_version '>= 0.36.0' but uses features which were added in newer versions:
* 0.37.0: {'gresource_bundle arg in gnome.compile_resources', 'i18n.merge_file'}
* 0.38.0: {'install_mode arg in install_data'}
* 0.50.0: {'install arg in configure_file'}
Found ninja-1.9.0 at /usr/bin/ninja
[medeo@localhost gtk-js-app]$ cd build/
[medeo@localhost build]$ ninja
[4/4] Generating com.example.Gtk.JSApplication.appdata.xml_data_merge with a custom command.
[medeo@localhost build]$ ninja install
[0/1] Installing files.
Installation failed due to insufficient permissions.
Attempting to use polkit to gain elevated privileges...
Installing src/com.example.Gtk.JSApplication.src.gresource to /usr/share/com.example.Gtk.JSApplication
Installing data/com.example.Gtk.JSApplication.data.gresource to /usr/share/com.example.Gtk.JSApplication
Installing data/com.example.Gtk.JSApplication.desktop to /usr/share/applications
Installing data/com.example.Gtk.JSApplication.appdata.xml to /usr/share/appdata
Installing /home/medeo/Coding/js/gtk-js-app/build/src/com.example.Gtk.JSApplication to /usr/bin
Installing /home/medeo/Coding/js/gtk-js-app/data/com.example.Gtk.JSApplication.gschema.xml to /usr/share/glib-2.0/schemas
Installing /home/medeo/Coding/js/gtk-js-app/build/data/com.example.Gtk.JSApplication.service to /usr/share/dbus-1/services
Running custom install script '/home/medeo/Coding/js/gtk-js-app/data/../meson/meson_post_install.py'
Compiling gsettings schemas...
Traceback (most recent call last):
File "/home/medeo/Coding/js/gtk-js-app/data/../meson/meson_post_install.py", line 13, in <module>
subprocess.call(['glib-compile-schemas', schemadir])
NameError: name 'schemadir' is not defined
FAILED: meson-install
/usr/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.