Opened 11 years ago

Last modified 3 days ago

#10642 assigned bug

Can't start BApplications with user that has no graphical session

Reported by: pulkomandy Owned by: nobody
Priority: normal Milestone: R1.1
Component: Servers/app_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by pulkomandy)

  • Create an additional user for ssh access
  • Ssh to your haiku computer, and try to run a BApplication
  • The application silently stops.

Syslog has this message:

DAEMON 'app_server': Cannot initialize Desktop object: General system error
KERN: Could not initialize graphics output. Exiting.

This happens with vim, unzip, and DumpRenderTree. It's either because of using ssh, or because the new user doesn't have the right permissions. At least a warning to standard output, instead of the syuslog, would be nice. A fix to make this working would be even better.

This is useful for BApplications that can run in command line without GUI.

Change History (8)

comment:1 by pulkomandy, 11 years ago

Confirmed the problem is being logged in as another user, so probably the permissions aren't right somewhere? Logging in with "user" through ssh gets this to work.

comment:2 by pulkomandy, 11 years ago

Component: - GeneralServers/app_server
Owner: changed from nobody to axeld
Summary: Can't start BApplications through ssh / with other userCan't start BApplications with other user

comment:3 by axeld, 8 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:4 by waddlesplash, 6 years ago

strace would be helpful.

comment:5 by pulkomandy, 4 years ago

Milestone: R1R1.1

comment:6 by X512, 4 days ago

I successfully managed to run applications from different users if separate display is specified such as remote desktop port. So I think that ticket can be closed.

Ability to switch screen between different user sessions is a separate issue deserving own ticket.

comment:7 by pulkomandy, 4 days ago

Description: modified (diff)
Summary: Can't start BApplications with other userCan't start BApplications with user that has no graphical session

The title is a bit confusing, but the problem here is (or was) running BApplication on a non-graphical session. BApplication may be used for applications without windows, but that doesn't work in this situation.

I will rename the ticket to make this clear.

comment:8 by X512, 3 days ago

but the problem here is (or was) running BApplication on a non-graphical session.

It is already possible if not connect to app_server in libbe.so, by using BServer class for example.

Note: See TracTickets for help on using tickets.