A few questions regarding ordering of the tray icons already have been asked (see here for example). This usually works great, electron apps behave somehow differently. When running an electron app (e.g. whatsie, gitter or Franz) the command
dbus-send --type=method_call --print-reply --dest=com.canonical.indicator.application /com/canonical/indicator/application/service com.canonical.indicator.application.service.GetApplications | grep "object path"
yields
object path /org/ayatana/NotificationItem/D9C91CA1_0092_45B8_9F09_108CB12987B3/Menu"
for the running electron app. The number D9C91CA1_0092_45B8_9F09_108CB12987B3
changes every time the app starts. Is there some structure behind that number which I can use to change ordering-override.keyfile
before the app starts? (Dropbox has a similar problem, but there are ways to fix this)
dropbox
string in it, so it can be proceeded by grep, sed, etc. In the case of Electron the ID string is rather meaningless and contains no distinctive keywords to separate it from others. – whtyger Jun 08 '16 at 07:53ps -ef | grep D9C91CA1_0092_45B8_9F09_108CB12987B3
(change the ID appropriately in your current session)? – whtyger Jun 09 '16 at 08:46grep -Eo '[A-F0-9]{8}_[A-F0-9]{4}_[A-F0-9]{4}_[A-F0-9]{4}_[A-F0-9]{12}'
) and reuse it in modified script for Dropbox. Otherwise I dunno how this can be achieved. BTW, what's the relation of the Chromium source code to Electron? – whtyger Jun 10 '16 at 09:46