Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
28
rated 0 times [  28] [ 0]  / answers: 1 / hits: 34758  / 2 Years ago, sun, march 6, 2022, 2:14:34

I'm trying to change Unity Launcher icons on a remote computer with command:



gsettings set com.canonical.Unity.Launcher favorites ...


and it works perfectly



But when I do



ssh 127.0.0.1
gsettings set com.canonical.Unity.Launcher favorites ...


I get this:



    (process:9616): dconf-WARNING **: failed to commit changes to dconf: Error spawning 
command line `dbus-launch --autolaunch=aaa5bb6eaa7cd50f2af1f10000000004 --binary-syntax
--close-stderr': Child process exited with code 1


And that is for any gsettings calls from ssh.

Where is the problem?


More From » ssh

 Answers
1

I don't think dbus is running in the remote ssh session. You need to start it yourself, but that's pretty easy to do:



dbus-launch gsettings set com.canonical.Unity.Launcher favorites ...


Also make sure that the user is correct, you can set settings for another user (if that's what you're doing) like this:



sudo -u other dbus-launch gsettings set com.canonical.Unity.Launcher favorites ...


The above assumes the user you're changing settings for is "other", change as appropriate.


[#30226] Sunday, March 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tinchir

Total Points: 300
Total Questions: 116
Total Answers: 119

Location: American Samoa
Member since Sun, Jan 17, 2021
3 Years ago
tinchir questions
Tue, Sep 14, 21, 23:11, 3 Years ago
Mon, Dec 19, 22, 13:00, 1 Year ago
Sat, Feb 5, 22, 11:36, 2 Years ago
Mon, Aug 8, 22, 02:16, 2 Years ago
;