[haiku-bugs] Re: [Haiku] #16610: app_server: crash when running application from another user

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 20 Nov 2020 04:45:38 -0000

#16610: app_server: crash when running application from another user
---------------------------------+----------------------------
  Reporter:  X512                |      Owner:  axeld
      Type:  bug                 |     Status:  new
  Priority:  normal              |  Milestone:  Unscheduled
 Component:  Servers/app_server  |    Version:  R1/Development
Resolution:                      |   Keywords:
Blocked By:                      |   Blocking:
  Platform:  All                 |
---------------------------------+----------------------------
Comment (by X512):

We are mostly talking about app_server here, and only registrar
 secondarily.

 Multi-user support in `app_server` is almost completed. Remaining part is
 desktop switching mechanism for same screen and corresponding protocol
 extensions. Most multi-user support work should be done in `registrar`
 because it currently have no support of user sessions.

 I am surprised that I managed to get almost working multi-user sessions
 with test_app_server. Steps I did:

 1. Create `test_user` with `/boot/home/test_user` as home directory in my
 Users utility.
 2. Copy default user home directory from `haiku-nightly.image` to
 `/boot/home/test_user` and run `chown -R test_user:users .` in it.
 2. Start `test_registrar` and `test_app_server`.
 3. In separate Terminal run `su test_user` and then run `Tracker &`,
 `Deskbar &` etc. `test_app_server` window for `test_user` will open.
 4. Tracker and other software successfully recognized home directory and
 write separate settings. For example different `Deskbar` settings can be
 used. Access rights are working.

 Other users and home directories can be also created.

I was talking about app_server regarding port/looper separation, not
 registrar, here.

 It is already working just now. The only problem is desktop switching on
 same screen. I see no reason of spending time for major refactor of
 already working code.

The alpha-mask cache, as I mentioned earlier, will be almost entirely
 different between users (unless they are doing almost the exact same
 things!) and so to share the alpha mask cache between users would just
 seriously degrade performance.

 Alpha-mask cache is related to applications, not user sessions. Common
 alpha-mask cache will be also not useful for multiple applications of same
 session that are doing different things.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16610#comment:16>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: