Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f17f22b
Added credentials for future installing extensions without using ince…
CODeRUS Aug 30, 2012
5691e16
Percentage indicator fixies
CODeRUS Aug 30, 2012
7d4feb7
Place order config to home directory. Will be used from control panel…
CODeRUS Aug 30, 2012
736e7e0
+fixies for order
CODeRUS Aug 30, 2012
129e148
+fix for credentials
CODeRUS Aug 30, 2012
d9ce0a0
Just missed beep profile icon
CODeRUS Aug 30, 2012
2f91074
Just fix for order configs owner
CODeRUS Aug 30, 2012
9f09ad1
StatusIndicatorMenuDropDownView fix to working state (nokia left it u…
CODeRUS Aug 30, 2012
f632369
system-ui-thene-fixed dependency contains sysuid.css styles fixies fo…
CODeRUS Aug 30, 2012
dedfe23
Layout fixies
CODeRUS Aug 31, 2012
6831fed
Removed dependency, added postinst script lines for easy fixing blanc…
CODeRUS Aug 31, 2012
937aec9
Credentials for chown in postinst script
CODeRUS Sep 1, 2012
579899c
Final layout fixies. Both views should work fine now. No unnecessary …
CODeRUS Sep 1, 2012
fd91669
Fix transparency background
CODeRUS Sep 1, 2012
465d079
Safemode fix for DropDownView
CODeRUS Sep 2, 2012
9342239
Missed file declaration
CODeRUS Sep 2, 2012
35a6833
Notification clear button fix and small layout fixies
CODeRUS Sep 2, 2012
75d8ff6
Fix for DropDownView. Stupid copy/paste mistake
CODeRUS Sep 3, 2012
853b15a
Layout fixies
CODeRUS Sep 3, 2012
8206f32
Layout fixies
CODeRUS Sep 8, 2012
ad59092
Don't overwrite existing menu configurations
CODeRUS Sep 8, 2012
6e6d3bf
Oops, mistake =)
CODeRUS Sep 8, 2012
db20e1f
dh_shlibdeps disabled, so, pushing depends manually. it decrease buil…
CODeRUS Sep 8, 2012
23caba9
Percentage indicator init fixies and gconf for hiding network (gsm) name
CODeRUS Sep 15, 2012
f254bc5
little fix
CODeRUS Sep 15, 2012
f91f001
Operator name fix,\nTest for DropDownMenu fix,\npostinst script fix f…
Sep 21, 2012
c36c91e
+ Extra credentials preload
CODeRUS Sep 21, 2012
64e8c67
Extra preload credential
CODeRUS Sep 21, 2012
e3f1eb2
Added netspeed indicator
VlaoMao Apr 13, 2013
f33b5da
Modified files
VlaoMao Apr 13, 2013
29a163a
Merge pull request #1 from VlaoMao/master
CODeRUS Apr 15, 2013
965490d
Battery percentage line at top with color settings
CODeRUS Apr 16, 2013
542215f
Fixed behaviour on startup
CODeRUS Apr 16, 2013
63c5770
Added two thresholds to battery color line
CODeRUS Jul 8, 2013
45ac150
Added Wazapp and Rocket LED notifications support
CODeRUS Jul 8, 2013
d8b910c
Unrestricted update
CODeRUS Aug 27, 2013
2e78f03
Added support for custom LED notifications
CODeRUS Aug 28, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Source: system-ui
Section: devel
Priority: optional
Maintainer: Vesa Halttunen <vesa.halttunen@nokia.com>
Maintainer: coderus <coderusinbox@gmail.com>
XSBC-Original-Maintainer: Vesa Halttunen <vesa.halttunen@nokia.com>
Build-Depends: debhelper (>= 5), doxygen (>=1.5.9), libmeegotouch-dev (>= 0.22.12-1+0m6),
libqmsystem2-dev (>= 1.2.0), libresourceqt-dev, libcontextsubscriber-dev,
libngf-dev, libxcomposite-dev, libxfixes-dev, libxext-dev,
Expand All @@ -11,13 +12,12 @@ Build-Depends: debhelper (>= 5), doxygen (>=1.5.9), libmeegotouch-dev (>= 0.22.1
Standards-Version: 3.8.0

Package: system-ui
Provides: duistatusindicatormenu, unrestricted-system-ui, system-ui-led-support
Provides: duistatusindicatormenu, unrestricted-system-ui, system-ui-led-support, unrestricted-settings-support
Conflicts: duistatusindicatormenu
Replaces: duistatusindicatormenu, cellular-ui
Architecture: any
Recommends: pulseaudio-module-meego-mainvolume
Depends: ${shlibs:Depends}, ${misc:Depends}, systemui-l10n-engineering-english, duicontrolpanel-privatemodeapplet, ui-fonts (>=5.6),
usb-moded [armel]
Depends: libc6 (>= 2.4), libcontextsubscriber0 (>= 0.5.41+0m7), libdbus-1-3 (>= 1.0.2), libdbus-glib-1-2 (>= 0.71), libgcc1 (>= 1:4.1.1), libmeegotouchcore0, libmeegotouchextensions0, libmeegotouchviews0, libngf0 (>= 0.21+0m6), libnotificationsystem0, libqmsystem2, libqt4-dbus (>= 4.7.4~git20120202), libqt4-meegographicssystemhelper (>= 4.7.4~git20120202), libqtcore4 (>= 4.7.4~git20120202), libqtgui4 (>= 4.7.4~git20120202), libstdc++6 (>= 4.4.0), libx11-6 (>= 0), libxdamage1 (>= 1:1.1), libxfixes3 (>= 1:4.0.1), systemui-l10n-engineering-english, duicontrolpanel-privatemodeapplet, ui-fonts (>= 5.6), usb-moded
Description: Various system user interfaces.
System user interface package contains various user interfaces, e.g:
- status area
Expand Down
10 changes: 1 addition & 9 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -92,25 +92,17 @@ binary-arch: build install
dh_installchangelogs $(EXCLUSIONS)
dh_installdocs $(EXCLUSIONS)
dh_install --sourcedir=debian/tmp $(EXCLUSIONS)
cp -v data/status-menu-items-order.conf debian/system-ui/etc/
# Sigh
mkdir -p debian/system-ui/usr/lib/meegotouch/applicationextensions
mkdir -p debian/system-ui/usr/share/meegotouch/applicationextensions
cp src/systemui/safemodeapplet/libstatusindicatormenu-safemode.so debian/system-ui/usr/lib/meegotouch/applicationextensions
cp src/systemui/safemodeapplet/statusindicatormenu-safemode.desktop debian/system-ui/usr/share/meegotouch/applicationextensions
dh_link $(EXCLUSIONS)
dh_strip --dbg-package=system-ui-dbg $(EXCLUSIONS)
dh_compress $(EXCLUSIONS)
dh_fixperms $(EXCLUSIONS)
dh_makeshlibs $(EXCLUSIONS)
dh_installdeb $(EXCLUSIONS)
dh_shlibdeps $(EXCLUSIONS)
# dh_shlibdeps $(EXCLUSIONS)
dh_gencontrol $(EXCLUSIONS)
dh_md5sums $(EXCLUSIONS)
dh_builddeb --destdir=$(DEBDIR) $(EXCLUSIONS)

aegis-deb-add -control debian/system-ui/DEBIAN/control .. debian/system-ui.aegis=_aegis

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

25 changes: 25 additions & 0 deletions debian/system-ui.aegis
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@
<credential name="mce::LEDControl" />
<credential match="xserver-security-policy::capture-drawables" />
<credential match="xserver-security-policy::record-input" />

<!-- Preload credentials, allowed only with com.nokia.maemo origin, or just preload for future installing applets w/o inception -->
<credential name="dsme::DeviceStateControl" />
<credential name="mce::DeviceModeControl" />
<credential name="GRP::video"/>
<credential name="GRP::pulse-access"/>
<credential name="Cellular"/>
<!-- End preload -->

<for path="/usr/bin/sysuid" />
</request>
<request>
<credential name="UID::user" />
<credential name="GID::users" />
<credential name="GRP::users" />
<credential name="CAP::chown"/>
<for path="/usr/share/sysuid/setup.sh" />
</request>
<request>
<credential name="UID::root" />
<credential name="GID::root" />
<credential name="GRP::root" />
<for path="/usr/share/sysuid/root_helper.sh" />
</request>
<request context="INSTALL">
<credential name="CAP::chown"/>
</request>
</aegis>
4 changes: 4 additions & 0 deletions debian/system-ui.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ usr/share/themes/base/meegotouch/sysuid/style/*.css
usr/share/meegotouch/notifications/eventtypes/*.conf
etc/dbus-1/system.d/systemui.conf
usr/share/themes/base/meegotouch/sysuid/feedbacks
usr/share/sysuid/*.conf
usr/share/sysuid/*.sh
usr/lib/meegotouch/applicationextensions/libstatusindicatormenu-safemode.so
usr/share/meegotouch/applicationextensions/statusindicatormenu-safemode.desktop
2 changes: 2 additions & 0 deletions debian/system-ui.postinst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

/usr/share/sysuid/setup.sh

if [ -n "`initctl status xsession/sysuid | grep running`" ]
then
initctl restart xsession/sysuid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ statusindicatormenu-internetconnection.desktop
statusindicatormenu-bluetooth.desktop
statusindicatormenu-dlna.desktop
statusindicatormenu-presence.desktop
statusindicatormenu-transfer.desktop
statusindicatormenu-transfer.desktop
5 changes: 5 additions & 0 deletions src/systemui/data/pannable-order.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
statusindicatormenu-internetconnection.desktop
statusindicatormenu-bluetooth.desktop
statusindicatormenu-dlna.desktop
statusindicatormenu-presence.desktop
statusindicatormenu-transfer.desktop
2 changes: 2 additions & 0 deletions src/systemui/data/top-order.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
statusindicatormenu-volume.desktop
statusindicatormenu-call.desktop
14 changes: 14 additions & 0 deletions src/systemui/notifications/lednotificationsink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ bool LEDNotificationSink::checkIfAcceptable(const NotificationParameters &parame
if (allowedNotifications.contains("organiser"))
return true;
}
// Wazapp events
else if (genericTextCatalogue.compare("wazapp") == 0) {
if (allowedNotifications.contains("wazapp"))
return true;
}
// Rocket events
else if (genericTextCatalogue.compare("rocket") == 0) {
if (allowedNotifications.contains("rocket"))
return true;
}
// Any other events with genericTextCatalogue listed in allowed
else if (allowedNotifications.contains(genericTextCatalogue)) {
return true;
}

return false;
}
Expand Down
8 changes: 6 additions & 2 deletions src/systemui/safemodeapplet/safemodecontroller.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "safemodecontroller.h"
#include "safemodeplugin.h"
#include "../statusindicatormenu/statusindicatormenuverticalview.h"
#include <QDBusInterface>
#include <QDBusConnection>

SafeModeController::SafeModeController(SafeModePlugin *safeModePlugin, QGraphicsItem *parent) :
CustomListItem(parent)
Expand All @@ -27,8 +29,10 @@ void SafeModeController::onItemClicked()
if (file.exists())
file.remove();

// Ugly, but don't know any other way :/
system("killall sysuid");
QDBusInterface *unrestricted = new QDBusInterface("com.nokia.unrestricted", "/menuwindow", "com.nokia.unrestricted",
QDBusConnection::sessionBus(), this);
unrestricted->call("resetMenuWidget");
delete unrestricted;
} else if (result == QMessageBox::Help) {
QDesktopServices::openUrl(QUrl("http://mohammadag.xceleo.org/system-ui-safe-mode-help.html"));
}
Expand Down
23 changes: 23 additions & 0 deletions src/systemui/scripts/root_helper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

restart_sysuid()
{
/sbin/initctl stop xsession/sysuid || echo "sysuid not running"
sleep 5
/sbin/initctl start xsession/sysuid
}

case "$1" in
"menu-modern")
sed -i -e "s/StatusIndicatorMenuVerticalView/StatusIndicatorMenuDropDownView/" /usr/share/themes/blanco/meegotouch/sysuid/sysuid.conf
restart_sysuid
;;
"menu-classic")
sed -i -e "s/StatusIndicatorMenuDropDownView/StatusIndicatorMenuVerticalView/" /usr/share/themes/blanco/meegotouch/sysuid/sysuid.conf
restart_sysuid
;;
*)
;;
esac

exit 0
20 changes: 20 additions & 0 deletions src/systemui/scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

if [ ! -d /home/user/.status-menu ]; then
"mkdir -p /home/user/.status-menu"
fi
if [ ! -f /home/user/.status-menu/items-order.conf ]; then
"cp -v /usr/share/sysuid/items-order.conf /home/user/.status-menu/"
fi
if [ ! -f /home/user/.status-menu/top-order.conf ]; then
"cp -v /usr/share/sysuid/top-order.conf /home/user/.status-menu/"
fi
if [ ! -f /home/user/.status-menu/pannable-order.conf ]; then
"cp -v /usr/share/sysuid/pannable-order.conf /home/user/.status-menu/"
fi

if [ -f /tmp/system-ui-crashed ]; then
rm /tmp/system-ui-crashed
fi

exit 0
Loading