Windows(XP、Vista、7)和 Linux(GTK、KDE...)的应用程序自动启动位置/方法

发布于 2024-07-29 15:57:08 字数 234 浏览 2 评论 0原文

我正在开发一个跨平台应用程序,需要在用户登录时自动启动(而不是系统启动)。 Windows/Linux 调用自动启动的常见位置/方法有哪些?

例如,用于自动启动的 Windows 注册表位置是否与所有版本的 Windows(XP、Vista、Windows 7 等)兼容。

那么 Gnome、KDE ​​又如何呢?

我正在寻找一种最通用的方法,该方法尽可能适用于许多版本的 Windows。

I am developing a cross platform application that needs to auto start upon user login (not system start). What are the common locations/methods in invoking auto start for Windows/Linux.

For example, are the Windows registry locations for auto start compatible across all versions of windows (XP, Vista, Windows 7, etc).

And what about Gnome, KDE?

I am looking for the most general method which will work across many versions of Windows as possible.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回忆追雨的时光 2024-08-05 15:57:08

对于 Windows,最简单的方法是在“开始”菜单的“启动”文件夹中放置一个快捷方式。 不是很复杂,但您不用担心兼容性。

For Windows, the easiest way is to put a shortcut in the Startup folder in the Start menu. Not very sophisticated but you have no worries about compatability.

三岁铭 2024-08-05 15:57:08

对于 gnome,“.desktop”文件可以放在 ~/.config/autostart/ 中,

这里有一个示例,~/.config/autostart/glista.desktop:

[Desktop Entry]
Type=Application
Name=GLista - Simple todo list manager
Exec=glista
Icon=system-run
Comment=
Name[en_US]=GLista
Comment[en_US]=Super-simple to-do list manager
X-GNOME-Autostart-enabled=true

顺便说一下,管理启动应用程序的界面可以在“系统 - 首选项 - 启动应用程序”。

For gnome, ".desktop" files can be placed in ~/.config/autostart/

here's a sample, ~/.config/autostart/glista.desktop:

[Desktop Entry]
Type=Application
Name=GLista - Simple todo list manager
Exec=glista
Icon=system-run
Comment=
Name[en_US]=GLista
Comment[en_US]=Super-simple to-do list manager
X-GNOME-Autostart-enabled=true

By the way, the interface for managing startup applications can be found on the "System - Preferences - Startup Applications".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文