Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

raspberry pi - How to disable desktop but still be able to run custom code with GUI on the raspi?

Here's what I'm trying to do. I would like to make a GUI application on the Raspi while being able to boot up into the CLI. The problem is that I get the error: (g:606): Gtk-WARNING **: 19:08:04.203: cannot open display If I run any kind of GUI element from a code. Obviously that's because I disabled the desktop but then I've seen people who are able to activate GUI from a CLI. Or may I be missing something here? Anyways, my point is that I want to be able to activate custom code that is associated with GUI from the CLI. Any help would be helpful. Thanks.

question from:https://stackoverflow.com/questions/65849910/how-to-disable-desktop-but-still-be-able-to-run-custom-code-with-gui-on-the-rasp

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...