1108 Commits (d57148540f5620243ebb2a44322ba104a5129692)
 

Author SHA1 Message Date
Andrew den Exter d57148540f [mapplauncherd] Fix race when in writing the daemon PID file and exiting. Contributes to JB#41671
The process forks twice when daemonizing, we need to wait for
the first fork to exit after it has written the PID of the second
fork before exiting the original process otherwise systemd may
try and read the file before it exists.
8 years ago
Andrew den Exter 78d0dc16f1 Merge branch 'jb40880' into 'master'
[mapplauncherd] Support running boosters as forking systemd services. Contributes to JB#40880

See merge request mer-core/mapplauncherd!6
8 years ago
Andrew den Exter 95f0d02446 [mapplauncherd] Support running boosters as forking systemd services. Contributes to JB#40880
This enables the case where the booster itself is launcher via an
invoker.
8 years ago
pvuorela 6439643867 Merge branch 'master' into 'master'
Fix build with new systemd

See merge request !3
9 years ago
Slava Monich f35103e569 Version 4.1.24 9 years ago
Slava Monich b8170de1d4 Merge branch 'dir' into 'master'
Own the config directories

See merge request !4
9 years ago
Slava Monich b9c591ab8e [mapplauncherd] Own the config directories. Contributes to JB#38236 9 years ago
Sergey Chupligin fcac0eb973 Fix build with new systemd 9 years ago
Chris Adams 406794ce0c [mapplauncherd] Bump version with fix for MER#1607 9 years ago
chriadam 84ba4c7960 Merge branch 'master' into 'master'
Add support for multiple privileges file

Fixes MER#1607

See merge request !2
9 years ago
Lucien XU 3f64a9869e Add support for multiple privileges file
Fixes MER#1607
9 years ago
martinjones df3254d72e Merge branch 'jb34267' into 'master'
[mapplauncherd] Allow a list of booster types to be provided. Contributes to JB#34267

Allows fallback boosters to be specified, e.g.

invoker -s --type=silica-media,silica-qt5 /usr/bin/jolla-camera

See merge request !1
10 years ago
Martin Jones 627bc74e65 [mapplauncherd] Allow a list of booster types to be provided. Contributes to JB#34267
Allows fallback boosters to be specified, e.g.

invoker -s --type=silica-media,silica-qt5 /usr/bin/jolla-camera
10 years ago
Robin Burchell 45ed31bffd Merge pull request #34 from rburchell/master
Clean up some remnants of the single-process-applauncherd model.
10 years ago
Robin Burchell 0ee65f7fa9 [README] Update to match reality a little closer. 10 years ago
Robin Burchell cf20fde0a6 [launcherlib] Remove some dead code.
This is unused since the switch from single daemon to
library-plus-multiple-processes.

Closes #33.
10 years ago
Thomas Perl 01ef004c8c Merge pull request #32 from nemomobile/jb30107
[invoker] Reduce the default respawn delay. Contributes to JB#30107
10 years ago
Martin Jones 02c79d3da7 [invoker] Reduce the default respawn delay. Contributes to JB#30107
This was perhaps a reasonable default 5 years ago, but today 1s is plenty.
11 years ago
Thomas Perl d543d53b3f [rebuild] mapplauncherd C++ fixes (Fixes JB#27875) 11 years ago
Thomas Perl 4aa1314204 Merge pull request #31 from thp/fstream
[launcherlib] Use fstream for file I/O
11 years ago
Thomas Perl 2af3c8ea95 [launcherlib] Use fstream for file I/O 11 years ago
Thomas Perl b2fa57c0c4 Merge pull request #27 from nemomobile/systemd
Allow booster start earlier during the startup.
11 years ago
Marko Saukko 39c2f31aa6 Allow booster start earlier during the startup.
[systemd] Allow booster to start earlier in the bootup.
[packaging] Drop .yaml support.

Signed-off-by: Marko Saukko <marko.saukko@jolla.com>
11 years ago
Thomas Perl 9412d3fe3d Merge pull request #30 from nemomobile/cleanup
[spec] Remove old spectacle cruft
11 years ago
Thomas Perl 738bf5c0f9 [spec] Remove old spectacle cruft 11 years ago
Giulio Camuffo aaf1f0eec4 Merge pull request #28 from giucam/notifylaunch
[invoker] Use a DBus method to notify lipstick an app is started
11 years ago
Thomas Perl 6b3426a86e Merge pull request #29 from thp/invoker-read-crash
[launcherlib] Handle booster exception gracefully
11 years ago
Giulio Camuffo 6b17aea5d0 [invoker] Use a DBus method to notify lipstick an app is started
This patch adds a new -F/--desktop-file command line option to
invoker which takes a desktop file name as argument. Using it will
notify lipstick that  the app which goes with that desktop file is
being started.
11 years ago
Thomas Perl 0736ccbf28 [launcherlib] Handle booster exception gracefully
When the booster fails to read information from the client,
we need to handle the exception to not cause std::terminate.
11 years ago
John Brooks 728960f81b Merge pull request #26 from special/getopt-posixly-correct
[invoker] Don't add POSIXLY_CORRECT to the environment
12 years ago
John Brooks 70c1cd2da7 [invoker] Don't add POSIXLY_CORRECT to the environment
As a GNU extension, passing '+' to getopt_long can be used as an
alternative to the POSIXLY_CORRECT environment variable to get the
argument behavior that invoker relies on. Variables set in the invoker
environment will pass onto child processes, and adding this to the
environment would break some applications.
12 years ago
John Brooks ff5740ca25 Merge pull request #25 from neochapay/master
Fix codestyle error
12 years ago
Чуплыгин Сергей 034ac5277a Fix codestyle error 12 years ago
John Brooks e874b7c88a Merge pull request #24 from neochapay/master
[mapplauncherd] Fix build error on Ubuntu
12 years ago
Чуплыгин Сергей 1f7b21a569 Fix build error on Ubuntu 12 years ago
Thomas Perl e2bfc733db [launcherlib] Drop privileges also in developer mode 12 years ago
Thomas Perl 0449a674f5 Merge pull request #21 from thp/handle-runtime-errors
[launcherlib] Handle failures of resolving main() dynamically
12 years ago
Thomas Perl ef26ef5bf0 [launcherlib] Handle failures of resolving main() dynamically
In case where the binary to be invoked is either not a shared library
object (e.g. it's a shell script) or when main() cannot be resolved
as shared library (because it hasn't been exported as such), instead
of abort()ing due to an uncaught exception, handle the exception and
print the error message in the log + on the console, and then fail.
12 years ago
Robin Burchell 85dce78c1b Merge pull request #20 from rburchell/master
[mapplauncherd] When trying to invoke an application fails, fall back to...
12 years ago
Robin Burchell 18a6a1f0e2 [mapplauncherd] When trying to invoke an application fails, fall back to the generic booster.
Falling back to an unboosted exec should be the path of absolute last resort,
nothing more. Failing to do this can result in broken privileges, etc.
12 years ago
Carsten Munk 88e63726cc Merge pull request #19 from faenil/oom
[service] Added OOMScoreAdjust to service file
12 years ago
Andrea Bernabei 0b55814c27 [service] Added OOMScoreAdjust to service file 12 years ago
John Brooks 96084ef437 Merge pull request #18 from rainisto/master
[mapplauncherd] Permission fix for OOM handling
12 years ago
Jonni Rainisto ac420a1ed7 [mapplauncherd] Permission fix for OOM handling 12 years ago
John Brooks d11c8ef004 Merge pull request #17 from thp/remove-obsolete-code
[booster] Remove unused / broken code
12 years ago
Thomas Perl 5ee322dd64 [booster] Remove unused / broken code
We don't have a "boosted" group anymore, so the call fails.
Remove all code related to the failing call.

The re-classification for policy does not seem to be needed anymore?
And if it is indeed still needed, it probably doesn't work atm.
12 years ago
John Brooks 683aeb74ba Merge pull request #16 from special/master
[mapplauncherd] Improve OOM score handling
12 years ago
John Brooks 9471a69431 [mapplauncherd] Rename invoker --daemon-mode to --keep-oom-score
The old name was vague and didn't indicate the change in behavior at
all. Its documentation also described the behavior incorrectly. If the
-o or --keep-oom-score parameter is passed, the OOM score of the boosted
process will be unchanged. Normally, it will be reset to 0 on launch.

The --daemon-mode parameter is kept as an alias for compatibility.
12 years ago
John Brooks 6f93c2947a [mapplauncherd] Reset oom_score_adj instead of oom_adj if needed 12 years ago
chriadam 30d2007c5e Merge pull request #15 from rainisto/master
[mapplauncherd] drop setgid from processes that are not isPrivileged()
12 years ago