maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [GUIDE for noobs] RPM packaging directly on your Jolla phone. (https://talk.maemo.org/showthread.php?t=92963)

flotron 2014-03-31 21:55

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
RPM built. Now lets brick the phone :P

flotron 2014-03-31 22:10

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
Success!

Except after apply theme and refresh it didn't apply. Maybe needs more time?

doing pkill via terminal after install worked

gconftool-2 -s --type=string /meegotouch/theme/name harbour-mytheme
pkill lipstick


What if i add a pause after pkill?

Schturman 2014-03-31 22:31

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
Don't know, try it...
Maybe instead pkill try
Code:

systemctl-user restart lipstick.service
Maybe it like in N9 when you need to restart some processes, not only homescreen refresh...
Maximum add reboot ;)

flotron 2014-03-31 23:03

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
The problem is thats not apply the theme with root privileges, only with user. I probed with root and user in terminal

Do you know how to apply the theme with user privilege?

This one
"gconftool-2 -s --type=string /meegotouch/theme/name harbour-mytheme"

Schturman 2014-03-31 23:19

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
use:
Code:

su -l nemo -c "command"
;)

flotron 2014-04-01 00:24

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
Quote:

Originally Posted by Schturman (Post 1419395)
use:
Code:

su -l nemo -c "command"
;)

That worked. :)

Schturman 2014-04-01 10:47

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
First post and PDF instruction updated!
* added explanation about running command from SPEC file as USER
* added command for installation of rpm-build package.

flotron 2014-04-01 18:58

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
Could it be possible notifications like n9?

dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotificatio n uint32:1000 uint32:0 string:'x-nokia.internet' string:'Theme' string:'Theme installed!

Schturman 2014-04-01 22:17

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
use notifer.py likr this: python /path/notifer.py. Use it also as USER from spec file.
Code:

#!/usr/bin/python
import dbus

bus = dbus.SessionBus()
object = bus.get_object('org.freedesktop.Notifications','/org/freedesktop/Notifications')
interface = dbus.Interface(object,'org.freedesktop.Notifications')
#print(interface.GetCapabilities())

interface.Notify("app_name",
                0,
                "icon-m-notifications",
                "Dalvik is STOPPED !",
                "Dalvik stopper",
                dbus.Array(["default", ""]),
                dbus.Dictionary({"x-nemo-preview-body": "Dalvik stopper",
                                  "x-nemo-preview-summary": "Dalvik is STOPPED !"},
                                  signature='sv'),
                0)

that mean:
Code:

su -l nemo -c "python /path/notifer.py"

Schturman 2014-04-14 22:30

Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
 
Hi to all
After last system update 1.0.5.16, I can't update my apps created with this method :( Don't know why, more detailed explanation here: http://talk.maemo.org/showthread.php?t=93023
Any help will be appreciated.
Thanks


All times are GMT. The time now is 06:13.

vBulletin® Version 3.8.8