After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773293 - Use a small C wrapper for launching
Use a small C wrapper for launching
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-20 21:14 UTC by Florian Müllner
Modified: 2016-10-30 19:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Rename variable (2.00 KB, patch)
2016-10-20 21:14 UTC, Florian Müllner
committed Details | Review
build: Use a small C wrapper (7.66 KB, patch)
2016-10-20 21:14 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2016-10-20 21:14:44 UTC
See patches.
Comment 1 Florian Müllner 2016-10-20 21:14:50 UTC
Created attachment 338127 [details] [review]
build: Rename variable

We install both a (private) library and an executable called 'polari'.
For now, the executable is a symlink to a script rather than a compiled
binary, so we use the POLARI variable for the library's dependencies.
As we are about to change that, rename it to LIBPOLARI to free the name
for the executable.
Comment 2 Florian Müllner 2016-10-20 21:14:57 UTC
Created attachment 338128 [details] [review]
build: Use a small C wrapper

Gjs' package module provides some convenience like automatically loading
resources and setting the correct WM_CLASS, however this requires apps
to follow the somehow problematic pattern of either using the App ID as
name of the main binary (which nobody does for the time being), or making
it a symlink to a script of that name. Unfortunately this pattern requires
special treatment in the build system (hello, meson), which then makes it
harder to support from IDEs (hello, builder). Instead, replace the current
launcher script with a small binary that runs the same code, but also
includes the required resources.
Comment 3 Bastian Ilsø 2016-10-27 21:51:36 UTC
I dont feel competent enough to give a "review" per se here, but for what it's worth I have compiled and run polari with both of these patches applied on top of polari git master. I have also read the diffs and skimmed the code and nothing immediate springed to my eyes. :-)
Comment 4 Florian Müllner 2016-10-30 19:51:29 UTC
Attachment 338127 [details] pushed as 4a60bf6 - build: Rename variable
Attachment 338128 [details] pushed as f5dce05 - build: Use a small C wrapper