MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / initialize

Method initialize

src/plugins/container/container.cpp:22–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21using namespace dpfservice;
22void Container::initialize()
23{
24 qInfo() << __FUNCTION__;
25 //发布Container到edit导航栏界面布局
26 if (QString(getenv("TERM")).isEmpty()) {
27 setenv("TERM", "xterm-256color", 1);
28 }
29 setenv("SHELL","/bin/bash",1);
30
31 // 发布容器服务
32 QString errStr;
33 auto &ctx = dpfInstance.serviceContext();
34 if (!ctx.load(ContainerService::name(), &errStr)) {
35 qCritical() << errStr;
36 abort();
37 }
38}
39
40bool Container::start()
41{

Callers

nothing calls this directly

Calls 5

abortFunction · 0.85
QStringClass · 0.50
nameFunction · 0.50
isEmptyMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected