2024.8.17
This commit is contained in:
26
core/attach.cpp
Normal file
26
core/attach.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// Created by acite on 5/1/24.
|
||||
//
|
||||
|
||||
#include <gtkmm.h>
|
||||
|
||||
using namespace Gtk;
|
||||
|
||||
extern Button* bAttach;
|
||||
extern Dialog* dialogAttach;
|
||||
extern Window* MainWindow;
|
||||
|
||||
void button_attach()
|
||||
{
|
||||
dialogAttach->show();
|
||||
}
|
||||
|
||||
void button_exec()
|
||||
{
|
||||
int fk = fork();
|
||||
if(fk == 0)
|
||||
{
|
||||
execl("/usr/bin/netstat", "netstat" ,"-tupln", NULL);
|
||||
return;
|
||||
}
|
||||
}
|
||||
4
core/core.cpp
Normal file
4
core/core.cpp
Normal file
@@ -0,0 +1,4 @@
|
||||
//
|
||||
// Created by acite on 5/1/24.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user