启动参数 [英] Startup parameters

查看:79
本文介绍了启动参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将启动参数传递给Headed程序(如URL地址?)(在Raspberry Pi 3上) 


我需要应用程序自动启动URL,我不想在每次更改时重新编译它


我通常会在启动时传递命令行参数,但这不是一个选项。


所以我想可能会设置一个注册表值,但是我没有看到如何读取应用程序中的值。


这是如何完成的? 

解决方案

你好


为什么不从应用程序文件夹中的文件中读取url


会让生活变得更轻松,并且支持它,因为你不需要在启动时传递参数


br

Andre


How can I pass a startup parameter to a Headed program such as a URL address?(on Raspberry Pi 3) 

I need the application to auto start with the URL and I don't want to recompile it each time it changes

I would normally pass a command line argument at startup, but that is not an option.

So I thought maybe setting a registry value, but I do not see how to read the values in an application.

How is this generally done? 

解决方案

hello

why not read the url from a file in application folder

would make life much easier and its supported as you don't need to pass parameters on startup

br
Andre


这篇关于启动参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆