Ubuntu 開機自動執行用Qt寫的程式

2021-09-20 06:22:52 字數 423 閱讀 4690

ubuntu16.04測試有效:

vim qrdecode.desktop   (注意字尾不要錯)

(2)在這個qrdecode.desktop檔案裡輸入下面:

[desktop entry]

version=1.0

name=qrdecode (這個是那個可執行檔案的名稱)

exec=/home/test/qrdecode (這個是那個可執行檔案的位置)

startupnotify=false

nodisplay=true

categories=system;utility;archiving;

(3)將這個qrdecode.desktop檔案拷貝到/etc/xdg/autostart目錄下

(4)重啟即可

Ubuntu開機自動執行指定程式

比如ubuntu的當前登入使用者是user1,現在想要在user1登入系統後自動執行test.sh,可在 home user1 profile檔案末尾追加如下命令 cd test.sh所在目錄 test.sh 注意 test.sh執行結果必須要麼是後台程序,要麼是馬上能完成的程式,否則,重啟系統並使...

redmine 開機自動執行

想要redmine在centos上開機自動執行,於是就在 etc rc.local裡面加上了一行指令碼 bin sh echo start redmine usr local ruby bin ruby usr local redmine script server webrick e produc...

ubuntu 開機自動啟動XAMPP

ubuntu 開機自動啟動xampp posted on 2009年二月28日 by kuei 1.以 root 的身份登入 2.在 etc init.d 目錄下建立 lampp.sh 檔案 lampp.sh 內容如下 bin sh cd opt lampp lampp start 3.更改許可權 ...