replace installation package dir to get theme from system.
SVN revision: 73441
This commit is contained in:
parent
f62d0f2027
commit
d982b5a9da
|
@ -8,6 +8,12 @@ EXTRA_DIST = \
|
|||
|
||||
dist_bin_SCRIPTS = econnman-bin
|
||||
|
||||
econnman-bin: $(top_srcdir)/econnman-bin.in $(top_builddir)/Makefile
|
||||
rm -f $(top_builddir)/econnman-bin
|
||||
sed -e 's:@PKGDATADIR@:$(pkgdatadir):g' \
|
||||
$(top_srcdir)/econnman-bin.in > $(top_builddir)/econnman-bin
|
||||
chmod +x $(top_builddir)/econnman-bin
|
||||
|
||||
desktopdir = $(datadir)/applications
|
||||
desktop_DATA = data/desktop/econnman.desktop
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ import dbus
|
|||
import dbus.service
|
||||
import logging
|
||||
import argparse
|
||||
import os.path
|
||||
|
||||
dbus_ml = e_dbus.DBusEcoreMainLoop()
|
||||
bus = dbus.SystemBus(mainloop=dbus_ml)
|
||||
|
@ -1353,7 +1354,9 @@ if __name__ == "__main__":
|
|||
elm.init()
|
||||
elm.policy_set(elm.ELM_POLICY_QUIT, elm.ELM_POLICY_QUIT_LAST_WINDOW_CLOSED)
|
||||
|
||||
elm.theme_extension_add("./data/theme/default.edj")
|
||||
for td in ("./data/theme/default.edj", "@PKGDATADIR@/theme/default.edj"):
|
||||
if os.path.exists(td):
|
||||
elm.theme_extension_add(td)
|
||||
|
||||
win = elm.Window("econnman", elm.ELM_WIN_BASIC)
|
||||
win.title = "EConnMan"
|
Loading…
Reference in New Issue