Okay, here's the problem. Running gjs-console calls gjs-console.real,
but then only runs the first 'word' as JavaScript because the arguments
don't stay quoted. The rest is lost to other command line arguments. For
example, in gnome-shell-clock-preferences:
/usr/bin/gjs-console -c "const ClockPreferences = ..."
The above call turns into this:
/usr/bin/gjs-console.real -c const ClockPreferences = ...
As you can see, -c is now just "const" (obviously wrong) because of the
quoting dropped. I'm about to submit a patch to /usr/bin/gjs-console
that changes this line:
exec /usr/bin/gjs-console.real $@
to this:
exec /usr/bin/gjs-console.real "$@"
which fixes the problem.
--
Gnome 3's gnome-shell-clock-preferences doesn't launch
https://bugs.launchpad.net/bugs/646877
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs