kysdk-dbus-websocket(1)

kysdk-dbus-websocket1

Kylin sdk d-bus to websocket bridge

Usage

kysdk-dbus-websocket

Overview

kysdk-dbus-websocket is a background service that provides a bridge between D-Bus system services and WebSocket connections. This service enables JavaScript applications to access KYLIN SDK D-Bus interfaces through WebSocket connections, facilitating web-based interaction with system-level functionality.

The service acts as a proxy that translates WebSocket messages to D-Bus method calls and signals, allowing web applications to interact with native system services without direct D-Bus access.

Features

D-Bus to WebSocket Bridge

Translates between D-Bus protocol and WebSocket protocol

JavaScript Interface

Provides web-based access to D-Bus services for JavaScript applications

Automatic Startup

Configured to start automatically with the desktop session

Background Operation

Runs silently in the background without user interface

Autostart configuration

The service is configured to start automatically with the desktop environment:

Desktop Entry

Installed as a hidden desktop application (NoDisplay=true)

Startup Delay

Configured with a 15-second delay (X-MATE_Autostart-Delay=15)

Execution Path

/usr/bin/kysdk-dbus-websocket

Files

/usr/bin/kysdk-dbus-websocket

Main executable file

/etc/xdg/autostart/kysdk-dbus-websocket.desktop

Autostart desktop entry file

~/.config/autostart/kysdk-dbus-websocket.desktop

User-specific autostart configuration (if customized)

Functionality

WebSocket Server

Listens for WebSocket connections on a configured port

D-Bus Proxy

Forwards WebSocket requests to appropriate D-Bus services

Signal Broadcasting

Broadcasts D-Bus signals to connected WebSocket clients

JSON Protocol

Uses JSON formatting for message exchange between WebSocket clients and D-Bus services

Supported interfaces

The service typically bridges common KYLIN SDK D-Bus interfaces including: - System information services - Hardware monitoring services - Network management services - Power management services - Process management services

Network configuration

WebSocket Port

Listens on a predefined port (typically configured in the application)

Local Access

Usually restricted to localhost connections for security

Protocol Support

Supports standard WebSocket protocol with JSON message format

Security

Access Restrictions

Limited to localhost connections to prevent remote exploitation

Privilege Level

Runs with user privileges, not system privileges

Interface Filtering

May implement filtering to restrict accessible D-Bus interfaces

Dependencies

D-Bus

For communication with system services

WebSocket Library

For WebSocket protocol implementation

Desktop Environment

For autostart functionality (MATE/GNOME/KDE)

Monitoring

Process Status

Can be monitored through standard process management tools

Connection Tracking

May provide connection statistics and client tracking

Log Output

Outputs to standard logging facilities

Troubleshooting

Service Status

Check if the process is running with "ps aux | grep kysdk-dbus-websocket"

Manual Start

Can be started manually by running "/usr/bin/kysdk-dbus-websocket"

Log Files

Check system logs or desktop environment logs for error messages

Environment

DISPLAY

Requires X11 display for desktop session integration

DBUS_SESSION_BUS_ADDRESS

Needs access to session D-Bus for service communication

HOME

Uses home directory for potential configuration files

Author

KylinSoft Co., Ltd.

From libkysdk-system 3.0.1.4-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.