本文介绍了单声道:设置程序在启动时的替代操作系统推出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows下编程,在C#3.5的应用程序。
本申请也是单声道兼容,所以它也被MacOS和Linux操作系统上使用。

I have an application that is programmed in C# 3.5 under Windows.This application is also Mono-compatible so it is also used on MacOs and Linux operating system.

有在我的应用程序中的启动启动选项。现在,它是灰色当操作系统不是Windows作为我使用注册表。

There is a "Launch at startup" option in my application. For now, it is greyed when the operating system is not windows as I'm using the registry.

但我在寻找执行相同的操作方式其他的操作系统。这应该是可行的使用Mono。
我需要至少适用于MacOS(最新版本)和Linux系统(如果它不同于从一个DISTRIB到另一个主要的Ubuntu)

But I'm looking for a way to perform the same operation for the other operating systems. And this should be doable with Mono.I need that at least for MacOs (most recent versions) and Linux systems (mostly Ubuntu if it differs from one distrib to another).

编辑:是一个用户应用程序与UI ...

Edit : it is a "user application" with UI...

推荐答案

不幸的是,每个操作系统都有这个设置了一个不同的方法。在Mac + Unix / Linux上,你几乎会希望这是一个用户级选项。

Unfortunately, each operating system has a different means of setting this up. On Mac+Unix/Linux, you're pretty much going to want this to be a user level option.

对于Mac,你可以检查的选项(非GUI应用程序),或手动添加到启动用户的项

For Mac, you can check the System Startup options (for non-gui apps), or manually add it to Startup Items of the user.

有关Linux中,你会遇到更多的问题,因为目前存在的分布处理这种不同。对于系统启动时,你经常要启动脚本添加到/etc/rc.d/rc.local文件(非GUI,系统启动,但这个可以基于分布)。如果它是一个用户应用程序,对于Linux,我会离开这个给用户,并采取选择了完全,因为它在用户级别通常处理,并且手段依赖于桌面环境的变化而变化。

For Linux, you'll run into more issues, since differnet distributions handle this differently. For system startup, you often want to add a startup script to /etc/rc.d/rc.local (non-gui, system startup, but this can vary based on distributions). If it's a user application, for Linux, I'd leave this to the user, and take the option out entirely, since it's usually handled at the user level, and the means varies depending on the desktop environment.

这篇关于单声道:设置程序在启动时的替代操作系统推出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 07:21