.png)
我想編輯/etc/rc.local
以在啟動時啟動驅動程式。
但是當我編輯時rc.local
,終端顯示:
(gedit:2844) gtk warning calling inhibit failed gdbus.error.:org.freedesktop.DBus.Error.ServiceUnknown: The name org.name.SessionManager was not provided by any .service files.
我處於“ sudo
”模式。我也嘗試過gksudo
。
答案1
儘管沒有實際問題,許多應用程式仍將這些訊息顯示為標準輸出/標準錯誤。
請注意,它們是警告,應用程式可能會探測您的系統上不存在的可選功能。如果您成功地編寫了您想要的更改,/etc/rc.local
那麼應該沒有問題。
然而,sudo
不建議用於圖形程式。gksudo
將能夠正確管理圖形控制和權限檔案的權限,這意味著進一步警告或可能出現錯誤的風險較小。