Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-01-13 16:42:07

ctac
Member
Registered: 2017-05-08
Posts: 57

Invisible property in xfconf-query

This question come from this answer :

xfconf-query -c xfce4-session -np '/shutdown/ShowHibernate' -t 'bool' -s 'false'

The use of the flag -n (Create a new property if it does not already exist) means to me that this property can not exist and its default value is true.
If this is the case, others property can be invisible with xfconf-query.
So, how can we find them ?

Offline

#2 2019-01-13 17:53:14

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,000

Re: Invisible property in xfconf-query

If it's not documented somewhere, then you have to look into the code. For xfce4-session (git version) for example, there is:

$ fgrep -ri xfconf_channel_get  | grep -v Binary
xfce4-session/xfsm-systemd.c:  if (xfconf_channel_get_bool (channel, "/shutdown/LockScreen", FALSE))
xfce4-session/main.c:  engine = xfconf_channel_get_string (channel, "/splash/Engine", "mice");
xfce4-session/main.c:  if (!opt_disable_tcp && xfconf_channel_get_bool (channel, "/security/EnableTcp", FALSE))
xfce4-session/xfsm-consolekit.c:  if (xfconf_channel_get_bool (channel, "/shutdown/LockScreen", FALSE))
xfce4-session/xfsm-startup.c:  if (xfconf_channel_get_bool (channel, "/compat/LaunchGNOME", FALSE))
xfce4-session/xfsm-startup.c:  if (xfconf_channel_get_bool (channel, "/startup/gpg-agent/enabled", TRUE))
xfce4-session/xfsm-startup.c:  if (xfconf_channel_get_bool (channel, "/startup/ssh-agent/enabled", TRUE))
xfce4-session/xfsm-startup.c:      ssh_agent = xfconf_channel_get_string (channel, "/startup/ssh-agent/type", NULL);
xfce4-session/xfsm-manager.c:  failsafe_name = xfconf_channel_get_string (channel, "/general/FailsafeSessionName", NULL);
xfce4-session/xfsm-manager.c:  if (!xfconf_channel_get_bool (channel, propbuf, FALSE))
xfce4-session/xfsm-manager.c:  count = xfconf_channel_get_int (channel, propbuf, 0);
xfce4-session/xfsm-manager.c:      command = xfconf_channel_get_string_list (channel, command_entry);
xfce4-session/xfsm-manager.c:      if (xfconf_channel_get_bool (channel, screen_entry, FALSE))
xfce4-session/xfsm-manager.c:  manager->session_name = xfconf_channel_get_string (channel,
xfce4-session/xfsm-manager.c:  manager->session_chooser = xfconf_channel_get_bool (channel, "/chooser/AlwaysDisplay", FALSE);
xfce4-session/xfsm-manager.c:  manager->compat_gnome = xfconf_channel_get_bool (channel, "/compat/LaunchGNOME", FALSE);
xfce4-session/xfsm-manager.c:  manager->compat_kde = xfconf_channel_get_bool (channel, "/compat/LaunchKDE", FALSE);
xfce4-session/xfsm-manager.c:  manager->start_at = xfconf_channel_get_bool (channel, "/general/StartAssistiveTechnologies", FALSE);
xfce4-session/sm-layer.c:  if (disable_tcp || !xfconf_channel_get_bool (channel, "/security/EnableTcp", FALSE))
xfce4-session/xfsm-shutdown-fallback.c:  if (xfconf_channel_get_bool (channel, "/shutdown/LockScreen", FALSE))
xfce4-session/xfce-screensaver.c:            saver->priv->xfpm_channel = xfconf_channel_get (XFPM_CHANNEL);
xfce4-session/xfce-screensaver.c:            saver->priv->xfsm_channel = xfconf_channel_get (XFSM_CHANNEL);
xfce4-session/xfsm-logout-dialog.c:    save_session = xfconf_channel_get_bool (channel, "/general/SaveOnExit", TRUE);
xfce4-session/xfsm-logout-dialog.c:  if (xfconf_channel_get_bool (channel, "/shutdown/ShowSuspend", TRUE))
xfce4-session/xfsm-logout-dialog.c:      && xfconf_channel_get_bool (channel, "/shutdown/ShowHibernate", TRUE))
xfce4-session/xfsm-logout-dialog.c:      && xfconf_channel_get_bool (channel, "/shutdown/ShowHybridSleep", TRUE))
xfce4-session/xfsm-logout-dialog.c:  if (xfconf_channel_get_bool (channel, "/shutdown/ShowSwitchUser", TRUE))
xfce4-session/xfsm-logout-dialog.c:      && !xfconf_channel_get_bool (channel, "/general/AutoSave", FALSE))
xfce4-session/xfsm-logout-dialog.c:    autosave = xfconf_channel_get_bool (channel, "/general/AutoSave", FALSE);
xfce4-session/xfsm-logout-dialog.c:  if (!xfconf_channel_get_bool (channel, "/general/PromptOnLogout", TRUE))
xfce4-session/xfsm-logout-dialog.c:      if (xfconf_channel_get_bool (channel, "/general/ShowScreenshots", TRUE))
libxfsm/xfsm-util.c:    channel = xfconf_channel_get ("xfce4-session");
libxfsm/xfsm-splash-rc.c:  return xfconf_channel_get_string (splash_rc->channel, prop, fallback);
libxfsm/xfsm-splash-rc.c:  return xfconf_channel_get_int (splash_rc->channel, prop, fallback);
libxfsm/xfsm-splash-rc.c:  return xfconf_channel_get_bool (splash_rc->channel, prop, fallback);
libxfsm/xfsm-splash-rc.c:  return xfconf_channel_get_string_list (splash_rc->channel, prop);
settings/main.c:    channel = xfconf_channel_get(SETTINGS_CHANNEL);
settings/splash-settings.c:          channel = xfconf_channel_get (SETTINGS_CHANNEL);
settings/splash-settings.c:          channel = xfconf_channel_get (SETTINGS_CHANNEL);
settings/splash-settings.c:  channel = xfconf_channel_get (SETTINGS_CHANNEL);
settings/splash-settings.c:  engine = xfconf_channel_get_string (channel, SPLASH_ENGINE_PROP, "");

Some are visible if you look at xfce4-settings-editor, some are set when changed from the default (the default is the value after the property), others are "hidden". There is no guarantee that they all work - you would need to test them to see.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-01-14 17:41:32

ctac
Member
Registered: 2017-05-08
Posts: 57

Re: Invisible property in xfconf-query

Ok, thanks. I look at that with no luck ...
With

/shutdown/ShowSwitchUser

I hope to get a button in the logout dialog box with no avail or to remove the button switchuser in the menu of actionbutton with no avail too.
I try on debian and OpenBSD.
I notice that you say :

ToZ wrote:

There is no guarantee that they all work - you would need to test them to see.

Thank again for your knowledge.

Offline

Board footer

Powered by FluxBB