0
dbus-send --system --print-reply           \
   --dest=org.freedesktop.DBus             \
   /org/freedesktop/DBus                   \
   org.freedesktop.DBus.StartServiceByName \
   string:org.freedesktop.login1 uint32:0  \
   2>&1 > /dev/null

I saw this dbus command used to launch logind.

Questions:

  1. Why does dbus-send have the term uint32:0? What does it do? What does :0 mean?
  2. Should 2>&1 > /dev/null be rewritten as 1> /dev/null given the purpose of the former is to only display error msg?
  • Note that it is literally uint32, not unit, as in your question title and body. This refers to the data type, a 32-bit unsigned integer, he value of which is to be set to 0. – AdminBee Feb 14 at 9:58
  • @AdminBee Thanks. Corrected typo. Why does this command need to assign an unsigned 32bit zero value to this dbus-send cmd? – Sun Bear Feb 14 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.