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

Method initialize

src/plugins/console/console.cpp:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12using namespace dpfservice;
13void Console::initialize()
14{
15 qInfo() << __FUNCTION__;
16 //发布Console到edit导航栏界面布局
17 if (QString(getenv("TERM")).isEmpty()) {
18 setenv("TERM", "xterm-256color", 1);
19 }
20
21 // load terminal service.
22 QString errStr;
23 auto &ctx = dpfInstance.serviceContext();
24 if (!ctx.load(TerminalService::name(), &errStr)) {
25 qCritical() << errStr;
26 }
27}
28
29bool Console::start()
30{

Callers

nothing calls this directly

Calls 4

QStringClass · 0.50
nameFunction · 0.50
isEmptyMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected