Commit Graph

54178 Commits

Author SHA1 Message Date
Dario Casalinuovo
6d2f2ec177 Rework nodes to call Run() only after registration
* While it should not be a big problem the
  bebook specify to do it after custom operations,
  most nodes also follow this way, this commit restore
  consistency.
2015-07-24 20:09:15 +02:00
Dario Casalinuovo
d009f28613 media_kit: Fix style as suggested in ml 2015-07-24 20:09:08 +02:00
Axel Dörfler
3108062744 Added PostInstallScript to the image.
* Somehow it didn't make it.
* This fixes the last part of #12227.
2015-07-24 19:45:38 +02:00
Axel Dörfler
5e541a6042 launch_daemon: Added /system/data/user_launch directory.
* This directory is for services that are launched per user (in a user
  context), but installed globally.
* This is now used for the default "user" configuration; before this was
  put into ~/config/non-packaged/data/launch, which didn't really fit,
  and has the huge disadvantage that it cannot be updated.
* Fixes part of #12227.
2015-07-24 17:25:13 +02:00
Dario Casalinuovo
4a99aae9e4 media_server: Check BMessenger validity
* Check BMessenger::IsValid on the instance
  used to query the nodes so that crashed
  teams are identified as soon as possible.
2015-07-24 12:19:35 +02:00
Dario Casalinuovo
61a59e87d8 MediaPlayer: add new media services notification service 2015-07-24 12:19:34 +02:00
Dario Casalinuovo
733709121a media_server: watch for media services status
* It's now calling CleanupDormantInfos when
  media_addon_server die.
2015-07-24 12:19:34 +02:00
Dario Casalinuovo
b43b20d38f Media: Add support for media services notifications 2015-07-24 12:19:34 +02:00
Dario Casalinuovo
92ab0a8c3a VolumeControl: Add support for media services notifications 2015-07-24 12:19:33 +02:00
Dario Casalinuovo
32afe10ab2 BMediaRoster: Add B_MEDIA_SERVER_STARTED and B_MEDIA_SERVER_QUIT
* This is done by watching to registrar notifications
  and providing a minimal service to contact the
  media roster in private API. The roster use this
  service to automatically reconnect to the media_server.
2015-07-24 12:19:33 +02:00
Dario Casalinuovo
e57acc3a99 BMediaRoster: Fix initialization and destruction
* Improve consistency by adding a BMediaRosterEx destructor
  and using it for the specular functionality of ctor instead
  to use the father's class destructor.
* Avoid double initialization of MediaInitializer that
  becomes MediaRosterUndertaker.
* Remove superfluos call to BMediaRoster::Quit()
  in media_addon_server.
2015-07-24 12:19:32 +02:00
Dario Casalinuovo
6cd18b575c BMediaRosterEx: cleanup and fix style in the header 2015-07-24 12:19:32 +02:00
Dario Casalinuovo
41f5b3fc35 launch_media_server: correctly handle media services start
* Handle when the media_addon_server is not
  running.
* Fix #5621.
2015-07-24 12:19:31 +02:00
Dario Casalinuovo
67483edabd Add BMediaRoster::IsRunning
* This function is provided to check
  if media services are running.
2015-07-24 12:19:31 +02:00
Axel Dörfler
239f85731e libbe: ui_color() now works without UI connection.
* Since the app_server is a BApplication, too, now, Workspaces would
  trigger this problem.
* Now it checks whether the shared memory is actually set, and only
  uses it in this case. This will also fix using ui_color() in any
  BServer without UI connection.
2015-07-24 12:15:53 +02:00
Humdinger
4fbe048e4c Update cdrtools to cdrtools-3.01~a30-1.
gcc2 only. gcc4 build fails. x86_64 has strangely a policy error.
2015-07-24 06:51:08 +02:00
Augustin Cavalier
00ac71aa79 Fix build after DVB removal.
Apparently, the files were included in the image.
2015-07-23 15:45:15 -04:00
Augustin Cavalier
10f255b925 data/artwork/icons: Tweaks/fixes.
Re-centering, fix clipped edges, etc.
2015-07-23 15:37:26 -04:00
Augustin Cavalier
bfa8608fa7 dvb channels: Delete from tree.
Not included in the build, and this is isn't the place for such datafiles.
TV channels in Germany have probably changed since 2007 anyway.
2015-07-23 15:16:33 -04:00
Augustin Cavalier
aa6f1cbe86 ProcessController: Remove hacks from BeOS days. 2015-07-23 11:50:26 -04:00
Augustin Cavalier
2090ed133e Tracker: IconMenuItem: Don't "use namespace" in a shared header. 2015-07-23 11:50:23 -04:00
Augustin Cavalier
f3dd3a96c8 FileTypes: ApplicationTypesWindow: Fix UI updates when the file doesn't exist.
If the filetype existed but the entry_ref did not, then the path from
the previously shown application would be used. This fixes that.
2015-07-23 11:50:20 -04:00
Augustin Cavalier
0267bc5f22 FileTypes: We don't plan on building for BeOS, so get rid of the ifdef. 2015-07-23 11:50:16 -04:00
Axel Dörfler
34671d601a Added execvpe().
* This closes #12114 again; while not POSIX, it's just a line away.
* Removed exect() from the header -- not sure where this came from.
  but I can't find anything about it on the net.
* Consolidated use of asterisk style in exec.cpp.
2015-07-23 13:30:30 +02:00
Axel Dörfler
edade0f506 Fixed duplicated include.
* Was incorrectly positioned, and therefore got duplicated during
  merge without me noticing it.
2015-07-23 13:29:04 +02:00
Axel Dörfler
26f8579d4c launch_daemon: GCC4 build fix. 2015-07-23 13:16:32 +02:00
Fredrik Holmqvist
c0958d1b7f Include string.h for strcmp, fix not keyword var. 2015-07-23 12:55:53 +02:00
Fredrik Holmqvist
35059a549c Or is also a keyword. 2015-07-23 12:03:30 +02:00
Fredrik Holmqvist
ff7da47aa9 Spelling error on notCondition. 2015-07-23 10:48:41 +02:00
Fredrik Holmqvist
8a9464f30c Don't use keywords and and not for variables. 2015-07-23 10:44:03 +02:00
Axel Dörfler
2fb7433b58 launch_daemon: Fixed Alexander's logic mixup.
* The warning in GCC 4 is just that, a warning. It doesn't mean
  the previous version was wrong :-)
2015-07-23 09:03:36 +02:00
Axel Dörfler
353af6bf04 Installer: reboot after install, don't shutdown. 2015-07-23 09:01:03 +02:00
Alexander von Gluck IV
739e7bdb66 launch_daemon: Fix missing logic parentheses
* These are not superfluous on gcc4+ :-)
2015-07-22 16:39:27 -05:00
Augustin Cavalier
990a73c29a Mail: Use BToolBar and vector icons.
Fixes #9519. Partially using the patch there, but most of this
is my own work.
2015-07-22 17:38:00 -04:00
Augustin Cavalier
58ee42e9df BToolBar: Add a "text" parameter.
For defining the text that appears alongside the icon.

This function really has too many parameters; we probably should break
it out into a BAction class...
2015-07-22 17:37:56 -04:00
Rene Gollent
006fd65396 Add missing launch definition for net_server. 2015-07-22 17:19:02 -04:00
Axel Dörfler
2ca4f3f81d launch_daemon: Jobs were started before their target.
* A job must not be launched when its target hasn't been launched
  yet. This fixes Tracker launching when the mount_server scanned
  the initial disk, even though the FirstBootPrompt was showing.
* Jobs are no longer initialized when their target has not been launched
  yet. This also means that you cannot talk to a service beforehand in
  this case.
* Slight refactoring and clarifying, even added some documentation :-)
* _TriggerJob() is now called _LaunchJob(), and does all the checks for
  jobs that _LaunchJobs() does now for targets.
2015-07-22 20:45:47 +02:00
Axel Dörfler
65ed8a5e87 Added post-install script, and start UserBootscript again.
* This is the final missing piece of the former boot process.
* Removed the unused Bootscript, and Bootscript.cd files.
2015-07-22 20:45:43 +02:00
Axel Dörfler
58fd8acd78 Added BLaunchRoster documentation.
* Untested, and could use some more love when it comes to possible
  error codes.
2015-07-22 20:45:38 +02:00
Axel Dörfler
326e03f721 BLaunchRoster: removed be_launch_roster again.
* Not implemented, an unused -- no need for a global instance.
2015-07-22 20:45:33 +02:00
Axel Dörfler
5e17d2d743 mount_server: Ported to a launch_daemon world.
* Now inherits from BServer, and gets its message port from the
  launch_daemon.
* It registers an event "initial_volumes_mounted" that allows other
  services to be started afterwards.
* This is now used in the boot launch files, and makes the scripting
  based previous solution superfluous which has been removed with this
  commit, too.
* This implements the last needed feature in order to reproduce the
  complete former boot process using the launch_daemon.
2015-07-22 20:45:29 +02:00
Axel Dörfler
d94e9c97d2 launch_daemon: Added support for external events.
* Other apps can register events, and the launch_daemon can act on them
  when they are triggered.
2015-07-22 20:45:24 +02:00
Axel Dörfler
2c756e16e0 launch_daemon: Fixed job event trigger.
* Always check for events before launching a job unconditionally.
* Correctly check for demand before launching a job.
2015-07-22 20:45:20 +02:00
Axel Dörfler
f6647de349 launch_daemon: Fixed NULL events.
* Also, events now can actually be NULL when there is an empty "on"
  field in the settings.
* This fixes a crash, too.
2015-07-22 20:45:15 +02:00
Axel Dörfler
f2afa73344 launch_daemon: Divided MessageReceived() into several methods.
* Was getting huge.
2015-07-22 20:45:11 +02:00
Axel Dörfler
d54bb194d7 launch_daemon: Empty conditions are now NULL.
* Instead of an empty and-condition.
2015-07-22 20:45:06 +02:00
Axel Dörfler
95d93d2ea9 launch_daemon: Fixed empty on/if parsing.
* An extra empty message was mistakenly created.
2015-07-22 20:45:02 +02:00
Axel Dörfler
f7b5ecfe00 hey: Added -h and --help for usage text.
* Didn't do anything before that.
* Removed some useless comments.
* This file could really need a cleanup.
2015-07-22 20:44:57 +02:00
Axel Dörfler
5b6c827e82 launch_daemon: Outlined basic event mechanism. 2015-07-22 20:44:53 +02:00
Axel Dörfler
1ec3f11d97 Create installer link in live mode, check existence.
* FirstBootPrompt as well as the Installer do not exist on the
  minimum image, so take this into account when making the startup
  target decisions.
2015-07-22 20:44:48 +02:00