linux - How to get gsettings scheme string from another user, trough javascript in gnome -


i wish know way pull gsettings user. example path background image, stored in org.gnome.desktop.background picture-uri.

with shell command, write:

gsettings org.gnome.desktop.background picture-uri or sudo -u taylorswift -b gsettings org.gnome.desktop.background picture-uri 

and in javascript with:

const background_schema = 'org.gnome.desktop.background'; let background = new gio.settings({ schema: background_schema }); let location = background.get_string(picture_uri_key); 

...but draw current active user. want act.user.get_icon_file() does, provided accountservice , stored in user file, have get_background_file() instead.

i know ubuntu’s unity stores background path both in gsettings , in user file, , draws login screen backgrounds. tried searching how did trough source code, couldn’t find anything. may have looked in wrong sources, ones managed find, on own.

sorry bad english. hope provided information needed.

regards.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -