[SailfishDevel] Connman OpenVPN

2014-01-04 Thread Matthias Fulz
Hi,

I'm working on a OpenVPN client for my Jolla, but it seems that connman is 
bugging around here:

this is the comman which will be used by connman:

openvpn --remote olz.dyndns.org --ca /home/nemo/OpenVPN/ca.crt --cert 
/home/nemo/OpenVPN/olz_mobile.crt --key /home/nemo/OpenVPN/olz_mobile.key --
comp-lzo --nobind --persist-key --client --script-security 2 --up 
/usr/lib/connman/scripts/openvpn-script --up-restart --setenv CONNMAN_BUSNAME 
:1.71 --setenv CONNMAN_INTERFACE net.connman.Task --setenv CONNMAN_PATH 
/task/0 --dev vpn0 --dev-type tun --persist-tun --route-noexec --ifconfig-
noexec --ping-restart 0

As it wasn't able to connect I've tried to run this command on my own:

[root@localhost OpenVPN]# openvpn --remote olz.dyndns.org --ca 
/home/nemo/OpenVPN/ca.crt --cert /home/nemo/OpenVPN/olz_mobile.crt --key 
/home/nemo/OpenVPN/olz_mobile.key --comp-lzo --nobind --persist-key --client 
--script-security 2 --up /usr/lib/connman/scripts/openvpn-script --up-restart 
--setenv CONNMAN_BUSNAME :1.71 --setenv CONNMAN_INTERFACE net.connman.Task --
setenv CONNMAN_PATH /task/0 --dev vpn0 --dev-type tun --persist-tun --route-
noexec --ifconfig-noexec --ping-restart 0
Sun Jan  5 01:41:41 2014 OpenVPN 2.2.2 armv7l-unknown-linux-gnueabi [SSL] 
[LZO2] [EPOLL] [PKCS11] [eurephia] built on Nov  1 2013
Sun Jan  5 01:41:41 2014 WARNING: No server certificate verification method has 
been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Sun Jan  5 01:41:41 2014 NOTE: the current --script-security setting may allow 
this configuration to call user-defined scripts
Sun Jan  5 01:41:41 2014 LZO compression initialized
Sun Jan  5 01:41:42 2014 UDPv4 link local: [undef]
Sun Jan  5 01:41:42 2014 UDPv4 link remote: 188.194.98.162:1194
Sun Jan  5 01:42:17 2014 [olz.dyndns.org] Peer Connection Initiated with 
188.194.98.162:1194
Sun Jan  5 01:42:20 2014 TUN/TAP device vpn0 opened
Sun Jan  5 01:42:20 2014 /usr/lib/connman/scripts/openvpn-script vpn0 1500 
1542 192.168.100.202 192.168.100.201 init
Sun Jan  5 01:42:20 2014 Initialization Sequence Completed

The issue is related to the script:

/usr/lib/connman/scripts/openvpn-script

which just seems to do nothing.

When I'm just removing the options:

--route-noexec --ifconfig-noexec

from the command above it is connecting fine:

Sun Jan  5 01:57:32 2014 OpenVPN 2.2.2 armv7l-unknown-linux-gnueabi [SSL] 
[LZO2] [EPOLL] [PKCS11] [eurephia] built on Nov  1 2013
Sun Jan  5 01:57:32 2014 WARNING: No server certificate verification method has 
been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Sun Jan  5 01:57:32 2014 NOTE: the current --script-security setting may allow 
this configuration to call user-defined scripts
Sun Jan  5 01:57:32 2014 LZO compression initialized
Sun Jan  5 01:57:33 2014 UDPv4 link local: [undef]
Sun Jan  5 01:57:33 2014 UDPv4 link remote: 188.194.98.162:1194
Sun Jan  5 01:58:07 2014 [olz.dyndns.org] Peer Connection Initiated with 
188.194.98.162:1194
Sun Jan  5 01:58:10 2014 TUN/TAP device vpn0 opened
Sun Jan  5 01:58:10 2014 /sbin/ip link set dev vpn0 up mtu 1500
Sun Jan  5 01:58:10 2014 /sbin/ip addr add dev vpn0 local 192.168.100.202 peer 
192.168.100.201
Sun Jan  5 01:58:10 2014 /usr/lib/connman/scripts/openvpn-script vpn0 1500 
1542 192.168.100.202 192.168.100.201 init
RTNETLINK answers: File exists
Sun Jan  5 01:58:10 2014 ERROR: Linux route add command failed: external 
program exited with error status: 2
Sun Jan  5 01:58:10 2014 Initialization Sequence Completed

ifconfig:

vpn0  Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
  inet addr:192.168.100.202  P-t-P:192.168.100.201  
Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:100 
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


Is this a bug inside connman or jolla? Could anyone help in finding a solution?

BR,

Matthias
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Zypper and PackageKit

2014-01-04 Thread Mikael Hermansson
On Saturday 04 January 2014 20.07.52 Martin Grimme wrote:
> Hi,
> 
> 2014/1/4, Andrey Kozhevnikov :
> > afaik pakckagekit have easy queue management
> 
> Yes, PackageKit can queue transactions, and it can be operated without
> root privileges (which zypper would require). Sailfish/Nemo uses
> zypper's libzypp as backend for PackageKit, however.
> AFAIK zypper doesn't come preinstalled on Sailfish, but can be installed.

One reason for packagekit is is to make "platform independent" package manager 
pkcon working both for RPM, DEB maybe more

its a freedesktop project see:

http://www.packagekit.org/index.html




-- 
Skickat från Lenovo Thinkpad X230 running Kubuntu desktop
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Harbour: Allow more libraries to link against

2014-01-04 Thread Alejandro Exojo
El Thursday 02 January 2014, Ville Ranki escribió:
> On 2013-12-27 22:16, Alejandro Exojo wrote:
> > In the meantime, correct me if I'm wrong, but I understood that one
> > can ship libraries in the package, as long as you care about
> > setting RPATH (and other packaging issues) yourself.
> 
> Can you recommend a tutorial or example on how to do this properly on
> Sailfish?

Is a matter of playing with settings in the build system (qmake's *.pro files, 
most likely).

If you started with the suggested template, you have a project configured for 
creating one executable alone. You will have to convert it to a SUBDIRS type, 
so qmake generates two subprojects (at least), one for the program, and other 
for the library. Copy the library in its subdirectory, and build it with a 
"library" template (check the qmake docs).

All that is the normal procedure.

Now make the library install in the path allowed by harbour, and use 
QMAKE_RPATHDIR to add that additional directory on the executable.

That's more or less it. I can't say if I missed something, but that's more or 
less the gist of it.

-- 
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
___
SailfishOS.org Devel mailing list


[SailfishDevel] qt-components-qt5 are missing theme files

2014-01-04 Thread Marcin M.
Hi,

I tried to experiment with the MeeGo components, and I noticed that the
graphics for it are missing:

> Connecting to device...
>
> [D] QQmlDebuggingEnabler::QQmlDebuggingEnabler:1392 - QML debugging is
> enabled. Only use this in a safe environment.
>
> [D] QWaylandEglIntegration::QWaylandEglIntegration:58 - Using Wayland-EGL
>
> [W] QQmlImportDatabase::importPlugin:1697 - Module 'com.nokia.meego' does
> not contain a module identifier directive - it cannot be protected from
> external registrations.
>
> [D] MLocalThemeDaemonClient::MLocalThemeDaemonClient:82 -
> MLocalThemeDaemonClient::MLocalThemeDaemonClient(const QString&, QObject*)
> Theme: "jolla-ambient"
>
> [D] MLocalThemeDaemonClient::MLocalThemeDaemonClient:138 -
> LocalThemeDaemonClient: Looking for assets in
> ("/usr/share/themes/base/meegotouch",
> "/usr/share/themes/jolla-ambient/meegotouch")
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-button-background"
>
> [W] unknown:80 - file:///usr/lib/qt5/qml/com/nokia/meego/Button.qml:80:5:
> QML BorderImage: Failed to get image from provider:
> image://theme/meegotouch-button-background
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-toolbar-portrait-background"
>
> [W] unknown:89 - file:///usr/lib/qt5/qml/com/nokia/meego/ToolBar.qml:89:5:
> QML BorderImage: Failed to get image from provider:
> image://theme/meegotouch-toolbar-portrait-background
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-menu-shadow-bottom"
>
> [W] unknown:82 - file:///usr/lib/qt5/qml/com/nokia/meego/ToolBar.qml:82:5:
> QML Image: Failed to get image from provider:
> image://theme/meegotouch-menu-shadow-bottom
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-menu-shadow-right"
>
> [W] unknown:76 - file:///usr/lib/qt5/qml/com/nokia/meego/ToolBar.qml:76:5:
> QML Image: Failed to get image from provider:
> image://theme/meegotouch-menu-shadow-right
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-menu-shadow-top"
>
> [W] unknown:70 - file:///usr/lib/qt5/qml/com/nokia/meego/ToolBar.qml:70:5:
> QML Image: Failed to get image from provider:
> image://theme/meegotouch-menu-shadow-top
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-menu-shadow-left"
>
> [W] unknown:64 - file:///usr/lib/qt5/qml/com/nokia/meego/ToolBar.qml:64:5:
> QML Image: Failed to get image from provider:
> image://theme/meegotouch-menu-shadow-left
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-applicationwindow-corner-bottom-right"
>
> [W] unknown:123 -
> file:///usr/lib/qt5/qml/com/nokia/meego/PageStackWindow.qml:123:13: QML
> Image: Failed to get image from provider:
> image://theme/meegotouch-applicationwindow-corner-bottom-right
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-applicationwindow-corner-bottom-left"
>
> [W] unknown:118 -
> file:///usr/lib/qt5/qml/com/nokia/meego/PageStackWindow.qml:118:13: QML
> Image: Failed to get image from provider:
> image://theme/meegotouch-applicationwindow-corner-bottom-left
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-applicationwindow-corner-top-right"
>
> [W] unknown:113 -
> file:///usr/lib/qt5/qml/com/nokia/meego/PageStackWindow.qml:113:13: QML
> Image: Failed to get image from provider:
> image://theme/meegotouch-applicationwindow-corner-top-right
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-applicationwindow-corner-top-left"
>
> [W] unknown:108 -
> file:///usr/lib/qt5/qml/com/nokia/meego/PageStackWindow.qml:108:13: QML
> Image: Failed to get image from provider:
> image://theme/meegotouch-applicationwindow-corner-top-left
>
> [W] err_method_notfound:2082 - QObject::connect: No such signal
> QScreen::currentOrientationChanged(Qt::ScreenOrientation)
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-button-background-pressed"
>
> [W] unknown:80 - file:///usr/lib/qt5/qml/com/nokia/meego/Button.qml:80:5:
> QML BorderImage: Failed to get image from provider:
> image://theme/meegotouch-button-background-pressed
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-button-background"
>
> [W] unknown:80 - file:///usr/lib/qt5/qml/com/nokia/meego/Button.qml:80:5:
> QML BorderImage: Failed to get image from provider:
> image://theme/meegotouch-button-background
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-button-background-pressed"
>
> [W] unknown:80 - file:///usr/lib/qt5/qml/com/nokia/meego/Button.qml:80:5:
> QML BorderImage: Failed to get image from provider:
> image://theme/meegotouch-button-background-pressed
>
> [D] MLocalThemeDaemonClient::readImage:186 - Unknown theme image:
> "meegotouch-button-background"
>
> [W] unknown:80 - file:///usr/lib/qt5/qml/com

Re: [SailfishDevel] Zypper and PackageKit

2014-01-04 Thread Martin Grimme
Hi,

2014/1/4, Andrey Kozhevnikov :
> afaik pakckagekit have easy queue management

Yes, PackageKit can queue transactions, and it can be operated without
root privileges (which zypper would require). Sailfish/Nemo uses
zypper's libzypp as backend for PackageKit, however.
AFAIK zypper doesn't come preinstalled on Sailfish, but can be installed.


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Zypper and PackageKit

2014-01-04 Thread Andrey Kozhevnikov

afaik pakckagekit have easy queue management

On 05.01.2014 00:40, Marcin M. wrote:

Hi,

I'm wondering, what are the advantages & disadvantages of Zypper vs 
PackageKit. Why has the latter been selected for Sailfish as default?


Regards,
--
Marcin


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] How to access html dom on SilicaWebView

2014-01-04 Thread Samuli Silvius
Hi,

I would like to read dom object (with my javascript functions) loaded by
SilicaWebView, how to access that on ready loaded webview?

Br
-Samuli
___
SailfishOS.org Devel mailing list

[SailfishDevel] Zypper and PackageKit

2014-01-04 Thread Marcin M.
Hi,

I'm wondering, what are the advantages & disadvantages of Zypper vs
PackageKit. Why has the latter been selected for Sailfish as default?

Regards,
--
Marcin
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SailfishOS SDK in /opt

2014-01-04 Thread Marcin M.
Well, after opening the VM in Virtualbox, it's gotten fixed. Thanks!

My installation log must've been overwritten, 'cause it has some
downloadable content stuff.

Thanks again!

--
Marcin


2014/1/4 

> Hi Marcin
>
> Did you get any further on this?
>
>
> Zitat von "Marcin M." :
>
>  I repeat, on this installation I've never had any SDK install. The remains
>> have been wiped with the system reinstall.
>>
>> What's strange, the virtual machine exists. See the attached file
>>
>> --
>> Marcin
>>
>>
> As the files for the SDK vm are on your host, it looks like something went
> wrong in the installation of the VM to VBox.
>
> In your SailfishOS directory there should be a log file
> InstallationLog.txt. Open this and search for MerSDK.vbox.
>
> Around this entry you should find lots of commands for VBoxManage for the
> SDK vm. I have pasted mine at the bottom of this mail.
>
> As the files are in place, perhaps you will be able to run equivalent
> commands via VBoxManage to activate the VM?
>
> Alternatively you might find it easier to add the VM using the VirtualBox
> Gui.
>
> You should find this in /usr/share/virtualbox Start it with ./VirtualBox,
> Then press the new icon.
>
> Grüsse
>
> Chris
>
>
>
> backup org.merproject.mersdk operation: Execute
> - arguments: /usr/bin/VBoxManage, setextradata, global,
> GUI/SuppressMessages, remindAboutAutoCapture,remindAboutWrongColorDepth,
> showRuntimeError.warning.HostAudioNotResponding,
> remindAboutMouseIntegrationOff
> Done
> perform org.merproject.mersdk operation: Execute
> - arguments: /usr/bin/VBoxManage, setextradata, global,
> GUI/SuppressMessages, remindAboutAutoCapture,remindAboutWrongColorDepth,
> showRuntimeError.warning.HostAudioNotResponding,
> remindAboutMouseIntegrationOff
> /usr/bin/VBoxManage" started, arguments: "setextradata global
> GUI/SuppressMessages remindAboutAutoCapture,remindAboutWrongColorDepth,
> showRuntimeError.warning.HostAudioNotResponding,
> remindAboutMouseIntegrationOff
> Done
> backup org.merproject.mersdk operation: Execute
> - arguments: /usr/bin/VBoxManage, createvm, --name, MerSDK,
> --register, --basefolder, /Users/christopherlamb/SailfishOS/mersdk,
> UNDOEXECUTE, /usr/bin/VBoxManage, unregistervm, --delete, MerSDK,
> errormessage=Please shutdown the "MerSDK" VM
> Done
> perform org.merproject.mersdk operation: Execute
> - arguments: /usr/bin/VBoxManage, createvm, --name, MerSDK,
> --register, --basefolder, /Users/christopherlamb/SailfishOS/mersdk,
> UNDOEXECUTE, /usr/bin/VBoxManage, unregistervm, --delete, MerSDK,
> errormessage=Please shutdown the "MerSDK" VM
> /usr/bin/VBoxManage" started, arguments: "createvm --name MerSDK
> --register --basefolder /Users/christopherlamb/SailfishOS/mersdk
> Virtual machine 'MerSDK' is created and registered.
> UUID: 8d3ae826-1ce9-48db-a39c-e331f55997a4
> Settings file: '/Users/christopherlamb/SailfishOS/mersdk/MerSDK/
> MerSDK.vbox'
>
> Done
> backup org.merproject.mersdk operation: Execute
> - arguments: /usr/bin/VBoxManage, modifyvm, MerSDK, --ostype,
> Linux26, --memory, 512, --vram, 10, --ioapic, on, --pae, on, --nic1, nat,
> --nictype1, virtio, --natpf1, guestssh,tcp,127.0.0.1,,,22, --natpf1,
> guestwww,tcp,127.0.0.1,8080,,9292, --nic2, intnet, --intnet2,
> sailfishsdk, --nictype2, virtio, --macaddress2, 08005A11F155
> Done
> perform org.merproject.mersdk operation: Execute
> - arguments: /usr/bin/VBoxManage, modifyvm, MerSDK, --ostype,
> Linux26, --memory, 512, --vram, 10, --ioapic, on, --pae, on, --nic1, nat,
> --nictype1, virtio, --natpf1, guestssh,tcp,127.0.0.1,,,22, --natpf1,
> guestwww,tcp,127.0.0.1,8080,,9292, --nic2, intnet, --intnet2,
> sailfishsdk, --nictype2, virtio, --macaddress2, 08005A11F155
> /usr/bin/VBoxManage" started, arguments: "modifyvm MerSDK --ostype Linux26
> --memory 512 --vram 10 --ioapic on --pae on --nic1 nat --nictype1 virtio
> --natpf1 guestssh,tcp,127.0.0.1,,,22 --natpf1
> guestwww,tcp,127.0.0.1,8080,,9292 --nic2 intnet --intnet2 sailfishsdk
> --nictype2 virtio --macaddress2 08005A11F155
> Done
> backup org.merproject.mersdk operation: Execute
> - arguments: /usr/bin/VBoxManage, storagectl, MerSDK, --name,
> SATA, --add, sata, --controller, IntelAhci, --bootable, on
> Done
> perform org.merproject.mersdk operation: Execute
> - arguments: /usr/bin/VBoxManage, storagectl, MerSDK, --name,
> SATA, --add, sata, --controller, IntelAhci, --bootable, on
> /usr/bin/VBoxManage" started, arguments: "storagectl MerSDK --name SATA
> --add sata --controller IntelAhci --bootable on
> Done
> backup org.merproject.mersdk operation: Execute
> - arguments: {0,1}, /usr/bin/VBoxManage, closemedium, disk,
> /Users/christopherlamb/SailfishOS/mersdk/mer.vdi
> Done
> perform org.merproject.mersdk operation: Execute
> - arguments: {0,1}, /usr/bin/VBoxManage, closemedium, disk,
> /Users/christopherlamb/SailfishOS/mersdk/mer.vdi
> /usr/bin/VBoxManage" started, arguments: "closemedium 

Re: [SailfishDevel] SailfishOS SDK in /opt

2014-01-04 Thread christopher . lamb

Hi Marcin

Did you get any further on this?

Zitat von "Marcin M." :


I repeat, on this installation I've never had any SDK install. The remains
have been wiped with the system reinstall.

What's strange, the virtual machine exists. See the attached file

--
Marcin



As the files for the SDK vm are on your host, it looks like something  
went wrong in the installation of the VM to VBox.


In your SailfishOS directory there should be a log file  
InstallationLog.txt. Open this and search for MerSDK.vbox.


Around this entry you should find lots of commands for VBoxManage for  
the SDK vm. I have pasted mine at the bottom of this mail.


As the files are in place, perhaps you will be able to run equivalent  
commands via VBoxManage to activate the VM?


Alternatively you might find it easier to add the VM using the VirtualBox Gui.

You should find this in /usr/share/virtualbox Start it with  
./VirtualBox, Then press the new icon.


Grüsse

Chris



backup org.merproject.mersdk operation: Execute
	- arguments: /usr/bin/VBoxManage, setextradata, global,  
GUI/SuppressMessages,  
remindAboutAutoCapture,remindAboutWrongColorDepth,showRuntimeError.warning.HostAudioNotResponding,remindAboutMouseIntegrationOff

Done
perform org.merproject.mersdk operation: Execute
	- arguments: /usr/bin/VBoxManage, setextradata, global,  
GUI/SuppressMessages,  
remindAboutAutoCapture,remindAboutWrongColorDepth,showRuntimeError.warning.HostAudioNotResponding,remindAboutMouseIntegrationOff
/usr/bin/VBoxManage" started, arguments: "setextradata global  
GUI/SuppressMessages  
remindAboutAutoCapture,remindAboutWrongColorDepth,showRuntimeError.warning.HostAudioNotResponding,remindAboutMouseIntegrationOff

Done
backup org.merproject.mersdk operation: Execute
	- arguments: /usr/bin/VBoxManage, createvm, --name, MerSDK,  
--register, --basefolder, /Users/christopherlamb/SailfishOS/mersdk,  
UNDOEXECUTE, /usr/bin/VBoxManage, unregistervm, --delete, MerSDK,  
errormessage=Please shutdown the "MerSDK" VM

Done
perform org.merproject.mersdk operation: Execute
	- arguments: /usr/bin/VBoxManage, createvm, --name, MerSDK,  
--register, --basefolder, /Users/christopherlamb/SailfishOS/mersdk,  
UNDOEXECUTE, /usr/bin/VBoxManage, unregistervm, --delete, MerSDK,  
errormessage=Please shutdown the "MerSDK" VM
/usr/bin/VBoxManage" started, arguments: "createvm --name MerSDK  
--register --basefolder /Users/christopherlamb/SailfishOS/mersdk

Virtual machine 'MerSDK' is created and registered.
UUID: 8d3ae826-1ce9-48db-a39c-e331f55997a4
Settings file: '/Users/christopherlamb/SailfishOS/mersdk/MerSDK/MerSDK.vbox'

Done
backup org.merproject.mersdk operation: Execute
	- arguments: /usr/bin/VBoxManage, modifyvm, MerSDK, --ostype,  
Linux26, --memory, 512, --vram, 10, --ioapic, on, --pae, on, --nic1,  
nat, --nictype1, virtio, --natpf1, guestssh,tcp,127.0.0.1,,,22,  
--natpf1, guestwww,tcp,127.0.0.1,8080,,9292, --nic2, intnet,  
--intnet2, sailfishsdk, --nictype2, virtio, --macaddress2, 08005A11F155

Done
perform org.merproject.mersdk operation: Execute
	- arguments: /usr/bin/VBoxManage, modifyvm, MerSDK, --ostype,  
Linux26, --memory, 512, --vram, 10, --ioapic, on, --pae, on, --nic1,  
nat, --nictype1, virtio, --natpf1, guestssh,tcp,127.0.0.1,,,22,  
--natpf1, guestwww,tcp,127.0.0.1,8080,,9292, --nic2, intnet,  
--intnet2, sailfishsdk, --nictype2, virtio, --macaddress2, 08005A11F155
/usr/bin/VBoxManage" started, arguments: "modifyvm MerSDK --ostype  
Linux26 --memory 512 --vram 10 --ioapic on --pae on --nic1 nat  
--nictype1 virtio --natpf1 guestssh,tcp,127.0.0.1,,,22 --natpf1  
guestwww,tcp,127.0.0.1,8080,,9292 --nic2 intnet --intnet2 sailfishsdk  
--nictype2 virtio --macaddress2 08005A11F155

Done
backup org.merproject.mersdk operation: Execute
	- arguments: /usr/bin/VBoxManage, storagectl, MerSDK, --name, SATA,  
--add, sata, --controller, IntelAhci, --bootable, on

Done
perform org.merproject.mersdk operation: Execute
	- arguments: /usr/bin/VBoxManage, storagectl, MerSDK, --name, SATA,  
--add, sata, --controller, IntelAhci, --bootable, on
/usr/bin/VBoxManage" started, arguments: "storagectl MerSDK --name  
SATA --add sata --controller IntelAhci --bootable on

Done
backup org.merproject.mersdk operation: Execute
	- arguments: {0,1}, /usr/bin/VBoxManage, closemedium, disk,  
/Users/christopherlamb/SailfishOS/mersdk/mer.vdi

Done
perform org.merproject.mersdk operation: Execute
	- arguments: {0,1}, /usr/bin/VBoxManage, closemedium, disk,  
/Users/christopherlamb/SailfishOS/mersdk/mer.vdi
/usr/bin/VBoxManage" started, arguments: "closemedium disk  
/Users/christopherlamb/SailfishOS/mersdk/mer.vdi

Done
backup org.merproject.mersdk operation: Execute
	- arguments: /usr/bin/VBoxManage, storageattach, MerSDK,  
--storagectl, SATA, --port, 1, --medium,  
/Users/christopherlamb/SailfishOS/mersdk/mer.vdi, --type, hdd,  
--setuuid, , UNDOEXECUTE, {0,1}, /usr/bin/VBoxManage, closemedium,  
disk, /Users/christopherlamb/SailfishOS/mersdk/mer.vdi,  
er

Re: [SailfishDevel] Using mailing lists on the Jolla

2014-01-04 Thread Mikael Hermansson
On Saturday 04 January 2014 14.34.19 Timur Kristóf wrote:
> Hi,
> 
> I know - I reported it. :)
> Just wanted to ask the opinion of people on this mailing list.
> 


seen it go vote people :) I think replyall issue should be fixed ASAP. However 
as some already stated. Bugreports about jolla apps should go to 
together.jolla.com so we don't flood this mailinglist :) IMHO

Oftopic... Not sure about where SDK/Silica bugreports should be reported?

/

Mikael



> 
> 
> Timur
> 
> On Sat, Jan 4, 2014 at 2:31 PM, Oskari Tulonen  wrote:
> > Hi,
> > 
> > This is already reported on together.jolla.com, as you can see here:
> > https://together.jolla.com/question/1087/bug-email-app-> > 
> > cant-reply-to-mailing-list-messages-properly/
> > 
> > ~Oskari
> > 
> > On 01/04/2014 03:18 PM, Timur Kristóf wrote:
> >> Hi everyone,
> >> 
> >> Since I read many mailing lists, I often want to reply to them while I'm
> >> on-the-go, but sadly, it seems that you can't really do this on the
> >> Jolla. I've found multiple bugs that basically render it extremely
> >> inconvenient (or sometimes even impossible) to reply to mailing list
> >> messages with the Jolla email app.
> >> 
> >> I'm actually not sure if anyone in Jolla ever tried to use a mailing
> >> list with the device, otherwise their QA would've found these bugs very
> >> easily.
> >> 
> >> - When you hit "Reply" on a mailing list email, the "To" field of the
> >> reply is the sender of the email, not the mailing list address.
> >> - There is no "Reply All" on a mailing list email, only if it has
> >> multiple recipients.
> >> - Even if "Reply All" is there and you choose that, the mailing list
> >> address is still not included in either "To" or "CC".
> >> - When you get a message from a contact (contact = someone in your
> >> People app), you can't edit the "To" field of the reply; meaning if you
> >> got a message from someone on a mailing list who also happens to be in
> >> your contact list, you can't even manually add the mailing list address
> >> to the reply.
> >> 
> >> Has anyone else also encountered these bugs?
> >> Can someone from Jolla confirm that there're people working on fixing
> >> them?
> >> 
> >> Thanks,
> >> Timur
> >> 
> >> 
> >> 
> >> ___
> >> SailfishOS.org Devel mailing list
> >> 
> >>  ___
> > 
> > SailfishOS.org Devel mailing list

-- 
Skickat från Lenovo Thinkpad X230 running Kubuntu desktop
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Using mailing lists on the Jolla

2014-01-04 Thread Oskari Tulonen
Right, I didn't make the connection. I noticed the mailing list problem 
earlier:

https://lists.sailfishos.org/pipermail/devel/2013-December/001867.html

Other email app issues are mentioned here:
https://lists.sailfishos.org/pipermail/devel/2013-December/002034.html

These are what I could find so far on the mailing list. I haven't 
encountered the uneditable To-field yet.


~Oskari

On 01/04/2014 03:34 PM, Timur Kristóf wrote:

Hi,

I know - I reported it. :)
Just wanted to ask the opinion of people on this mailing list.



Timur



On Sat, Jan 4, 2014 at 2:31 PM, Oskari Tulonen mailto:ott...@wippies.fi>> wrote:

Hi,

This is already reported on together.jolla.com
, as you can see here:

https://together.jolla.com/__question/1087/bug-email-app-__cant-reply-to-mailing-list-__messages-properly/



~Oskari


On 01/04/2014 03:18 PM, Timur Kristóf wrote:

Hi everyone,

Since I read many mailing lists, I often want to reply to them
while I'm
on-the-go, but sadly, it seems that you can't really do this on the
Jolla. I've found multiple bugs that basically render it extremely
inconvenient (or sometimes even impossible) to reply to mailing list
messages with the Jolla email app.

I'm actually not sure if anyone in Jolla ever tried to use a mailing
list with the device, otherwise their QA would've found these
bugs very
easily.

- When you hit "Reply" on a mailing list email, the "To" field
of the
reply is the sender of the email, not the mailing list address.
- There is no "Reply All" on a mailing list email, only if it has
multiple recipients.
- Even if "Reply All" is there and you choose that, the mailing list
address is still not included in either "To" or "CC".
- When you get a message from a contact (contact = someone in your
People app), you can't edit the "To" field of the reply; meaning
if you
got a message from someone on a mailing list who also happens to
be in
your contact list, you can't even manually add the mailing list
address
to the reply.

Has anyone else also encountered these bugs?
Can someone from Jolla confirm that there're people working on
fixing them?

Thanks,
Timur



_
SailfishOS.org Devel mailing list

_
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Using mailing lists on the Jolla

2014-01-04 Thread Thomas Tanghus
On Saturday 04 January 2014 15:31 Oskari Tulonen wrote:
> Hi,
> 
> This is already reported on together.jolla.com, as you can see here:
> https://together.jolla.com/question/1087/bug-email-app-cant-reply-to-mailing
> -list-messages-properly/

And 

https://together.jolla.com/question/591/email-honour-reply-to-header/
https://together.jolla.com/question/596/email-insert-in-reply-to-header/

:)
 
> ~Oskari
> 
> On 01/04/2014 03:18 PM, Timur Kristóf wrote:
> > 
> > Has anyone else also encountered these bugs?
> > Can someone from Jolla confirm that there're people working on fixing
> > them?

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Using mailing lists on the Jolla

2014-01-04 Thread Timur Kristóf
Hi,

I know - I reported it. :)
Just wanted to ask the opinion of people on this mailing list.



Timur



On Sat, Jan 4, 2014 at 2:31 PM, Oskari Tulonen  wrote:

> Hi,
>
> This is already reported on together.jolla.com, as you can see here:
> https://together.jolla.com/question/1087/bug-email-app-
> cant-reply-to-mailing-list-messages-properly/
>
> ~Oskari
>
>
> On 01/04/2014 03:18 PM, Timur Kristóf wrote:
>
>> Hi everyone,
>>
>> Since I read many mailing lists, I often want to reply to them while I'm
>> on-the-go, but sadly, it seems that you can't really do this on the
>> Jolla. I've found multiple bugs that basically render it extremely
>> inconvenient (or sometimes even impossible) to reply to mailing list
>> messages with the Jolla email app.
>>
>> I'm actually not sure if anyone in Jolla ever tried to use a mailing
>> list with the device, otherwise their QA would've found these bugs very
>> easily.
>>
>> - When you hit "Reply" on a mailing list email, the "To" field of the
>> reply is the sender of the email, not the mailing list address.
>> - There is no "Reply All" on a mailing list email, only if it has
>> multiple recipients.
>> - Even if "Reply All" is there and you choose that, the mailing list
>> address is still not included in either "To" or "CC".
>> - When you get a message from a contact (contact = someone in your
>> People app), you can't edit the "To" field of the reply; meaning if you
>> got a message from someone on a mailing list who also happens to be in
>> your contact list, you can't even manually add the mailing list address
>> to the reply.
>>
>> Has anyone else also encountered these bugs?
>> Can someone from Jolla confirm that there're people working on fixing
>> them?
>>
>> Thanks,
>> Timur
>>
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>>
>>  ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Using mailing lists on the Jolla

2014-01-04 Thread Oskari Tulonen

Hi,

This is already reported on together.jolla.com, as you can see here:
https://together.jolla.com/question/1087/bug-email-app-cant-reply-to-mailing-list-messages-properly/

~Oskari

On 01/04/2014 03:18 PM, Timur Kristóf wrote:

Hi everyone,

Since I read many mailing lists, I often want to reply to them while I'm
on-the-go, but sadly, it seems that you can't really do this on the
Jolla. I've found multiple bugs that basically render it extremely
inconvenient (or sometimes even impossible) to reply to mailing list
messages with the Jolla email app.

I'm actually not sure if anyone in Jolla ever tried to use a mailing
list with the device, otherwise their QA would've found these bugs very
easily.

- When you hit "Reply" on a mailing list email, the "To" field of the
reply is the sender of the email, not the mailing list address.
- There is no "Reply All" on a mailing list email, only if it has
multiple recipients.
- Even if "Reply All" is there and you choose that, the mailing list
address is still not included in either "To" or "CC".
- When you get a message from a contact (contact = someone in your
People app), you can't edit the "To" field of the reply; meaning if you
got a message from someone on a mailing list who also happens to be in
your contact list, you can't even manually add the mailing list address
to the reply.

Has anyone else also encountered these bugs?
Can someone from Jolla confirm that there're people working on fixing them?

Thanks,
Timur



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


[SailfishDevel] Using mailing lists on the Jolla

2014-01-04 Thread Timur Kristóf
Hi everyone,

Since I read many mailing lists, I often want to reply to them while I'm
on-the-go, but sadly, it seems that you can't really do this on the Jolla.
I've found multiple bugs that basically render it extremely inconvenient
(or sometimes even impossible) to reply to mailing list messages with the
Jolla email app.

I'm actually not sure if anyone in Jolla ever tried to use a mailing list
with the device, otherwise their QA would've found these bugs very easily.

- When you hit "Reply" on a mailing list email, the "To" field of the reply
is the sender of the email, not the mailing list address.
- There is no "Reply All" on a mailing list email, only if it has multiple
recipients.
- Even if "Reply All" is there and you choose that, the mailing list
address is still not included in either "To" or "CC".
- When you get a message from a contact (contact = someone in your People
app), you can't edit the "To" field of the reply; meaning if you got a
message from someone on a mailing list who also happens to be in your
contact list, you can't even manually add the mailing list address to the
reply.

Has anyone else also encountered these bugs?
Can someone from Jolla confirm that there're people working on fixing them?

Thanks,
Timur
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SailfishSDK: bugs ( probadly known)

2014-01-04 Thread Thomas Tanghus
On Saturday 04 January 2014 14:04 Mikael Hermansson wrote:
> Emulator: "Lipstick crashing"
> 
> * lipstick randomly get "black screen of dead".  seems related to
> screensaver  activates?  restart lipstick doing"pkill lipstick" fixes the
> issue but annoying.

And you can't just hold-and-drag with the mouse to get it going?

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus
___
SailfishOS.org Devel mailing list


[SailfishDevel] SailfishSDK: bugs ( probadly known)

2014-01-04 Thread Mikael Hermansson
Some of problem I have seen with the SDK when working with under christmas/new 
year:

Can't decide if this should  be split and posted on together.jolla.com? Or is 
together only used for device related stuff?

QtCreator: "mer/emulator not started" 

* when click yes. It would be nice if it actually build/run when started 
instead of click again on build/start.

Emulator: "Lipstick crashing"

* lipstick randomly get "black screen of dead".  seems related to screensaver 
activates?  restart lipstick doing"pkill lipstick" fixes the issue but 
annoying.

Emulator: "app start twice"

* Apps starts more than ones in the emulator when click run. This should be 
avoided IMHO.

MerBuild machine:

* One or two times I had accidently start compiler twice  in qtcreator.  make 
mer eating cpu in VM (have to restart vm).


Btw. old bug that seems gone:

The already reported problem with kubuntu and "sometimes" no pointer in 
emulator seems has dissapeared? Maybe was fixed in latest SDK can't remember 
when this was seen last on my system. 


Regards

Mikael

-- 
Skickat från Lenovo Thinkpad X230 running Kubuntu desktop
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Kimmo Lindholm
Ahaa... I know now where the problem is. need to read last sentence from the 
documentation.

I'm doing this in stateless lib... (.pragma library) I should have mentioned 
that already in first mail..

"As they are shared, stateless library files cannot access QML component 
instance objects or properties directly,"

I'll crawl back to the hole now. Thanks for your efforts.

>.import Sailfish.Silica.theme 1.0 as SilicaTheme
>
>function test() {
>console.log("color: " + SilicaTheme.Theme.primaryColor)
>}
>
>// color: #ff
On 04.01.2014 17:47, Kimmo Lindholm wrote:
Gives following from .import line:
[W] unknown:23 - qrc:///js/constants.js:23: SyntaxError: Unexpected token .

If I add 1.0, I get warning
[W] unknown:23 - qrc:///js/constants.js:23:1: Module import requires a qualifier


(Docs say .import TypeNamespace MajorVersion.MinorVersion as Qualifier)



So back where started...

>.import Sailfish.Silica.theme
>
>var color_info = Theme.primaryColor
On 04.01.2014 17:14, Kimmo Lindholm wrote:
Tested, didn't work - same results

.import Sailfish.Silica.Theme 1.0 as SilicaTheme
var color_info = SilicaTheme.primaryColor;



>import Sailfish.Silica.theme 1.0
On 04.01.2014 16:49, Kimmo Lindholm wrote:
I assume this is clear as daylight but I don't get it...

I need to access Theme colors from javascript -file;

I have successfully imported it

.import Sailfish.Silica 1.0 as Silica

and in QtCreator after typing Silica. I can see dropdown of all sort of stuff, 
but no 'Theme'.
And tinkering didn't work:

var color_info = Silica.Theme.primaryColor;

It gives runtime warning from QML side where color_info is used:
[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to assign [undefined] to 
QColor

And those which are colored from js side with color_info do appear black...


-kimmo









___

SailfishOS.org Devel mailing list






___

SailfishOS.org Devel mailing list





___

SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Check for OS in .PRO file

2014-01-04 Thread Putze Sven
Thanks,

Thomas' hint of avoiding the conditionals convinced me somehow :-)

BR.
Sven

On 04.01.2014, at 12:15, David Greaves  wrote:

> Just for the record this will fail to build on the Community OBS or even in a
> Mer Platform SDK using a SailfishOS target.
> 
> Thomas and Timur's suggestions would work.
> 
> David
> 
> On 04/01/14 10:42, Putze Sven wrote:
>> Hi,
>> 
>> I should read my mails more often 8) Just figured out
>> 
>> win32|macx{
>>SDKHOSTNAME=unknown
>> }
>> linux-g++{
>>SDKHOSTNAME=$$system(hostname)
>> }
>> contains(SDKHOSTNAME , "SailfishSDK"){
>>message("Heureka! Running on the MerSDK VM")
>> }
>> else{
>>message("running somewhere else")
>> }
>> 
>> 
>> But I will also think about what you guys wrote, thank you!
>> 
>> BR.
>> Sven
>> 
>> On 02.01.2014, at 20:25, Sven Putze  wrote:
>> 
>>> Hi there,
>>> 
>>> first of all a happy new year to everyone! I had some time offline this 
>>> morning, so here comes a bunch of emails...
>>> 
>>> 
>>> There are ways to check for the OS in QtCreator .PRO files, e.g. like
>>> 
>>> unix:symbian{ # do stuff}
>>> unix:maemo5{ # do stuff}
>>> macx{ # do stuff}
>>> win32{ # do stuff}
>>> 
>>> Is there a way to check (or control to be more precise) that some 
>>> directives are only used when compiling on the MerSDL VM?
>>> Just checking for the presence of "sailfishapp" does not work, because that 
>>> is defined for any OS.
>>> 
>>> BR.
>>> Sven
>>> ___
>>> SailfishOS.org Devel mailing list
>> 
>> ___
>> SailfishOS.org Devel mailing list
>> 
> 

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Andrey Kozhevnikov

.import Sailfish.Silica.theme 1.0 as SilicaTheme

function test() {
console.log("color: " + SilicaTheme.Theme.primaryColor)
}

// color: #ff

On 04.01.2014 17:47, Kimmo Lindholm wrote:


Gives following from .import line:

[W] unknown:23 - qrc:///js/constants.js:23: SyntaxError: Unexpected 
token .


If I add 1.0, I get warning

[W] unknown:23 - qrc:///js/constants.js:23:1: Module import requires a 
qualifier


(Docs say.import TypeNamespace MajorVersion.MinorVersion as Qualifier)
  
So back where started...


>.import Sailfish.Silica.theme
>
>var color_info = Theme.primaryColor

On 04.01.2014 17:14, Kimmo Lindholm wrote:

Tested, didn't work -- same results

.importSailfish.Silica.Theme1.0asSilicaTheme

var/color_info/=SilicaTheme.primaryColor;

>import Sailfish.Silica.theme 1.0

On 04.01.2014 16:49, Kimmo Lindholm wrote:

I assume this is clear as daylight but I don't get it...

I need to access Theme colors from javascript --file;

I have successfully imported it

.importSailfish.Silica1.0asSilica

and in QtCreator after typing Silica. I can see dropdown of
all sort of stuff, but no 'Theme'.

And tinkering didn't work:

var/color_info/=Silica.Theme.primaryColor;

It gives runtime warning from QML side where color_info is used:

[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to
assign [undefined] to QColor

And those which are colored from js side with color_info do
appear black...

-kimmo





___

SailfishOS.org Devel mailing list




___

SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Kimmo Lindholm
Gives following from .import line:
[W] unknown:23 - qrc:///js/constants.js:23: SyntaxError: Unexpected token .

If I add 1.0, I get warning
[W] unknown:23 - qrc:///js/constants.js:23:1: Module import requires a qualifier


(Docs say .import TypeNamespace MajorVersion.MinorVersion as Qualifier)



So back where started...

>.import Sailfish.Silica.theme
>
>var color_info = Theme.primaryColor
On 04.01.2014 17:14, Kimmo Lindholm wrote:
Tested, didn't work - same results

.import Sailfish.Silica.Theme 1.0 as SilicaTheme
var color_info = SilicaTheme.primaryColor;



>import Sailfish.Silica.theme 1.0
On 04.01.2014 16:49, Kimmo Lindholm wrote:
I assume this is clear as daylight but I don't get it...

I need to access Theme colors from javascript -file;

I have successfully imported it

.import Sailfish.Silica 1.0 as Silica

and in QtCreator after typing Silica. I can see dropdown of all sort of stuff, 
but no 'Theme'.
And tinkering didn't work:

var color_info = Silica.Theme.primaryColor;

It gives runtime warning from QML side where color_info is used:
[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to assign [undefined] to 
QColor

And those which are colored from js side with color_info do appear black...


-kimmo








___

SailfishOS.org Devel mailing list





___

SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Andrey Kozhevnikov

.import Sailfish.Silica.theme

var color_info = Theme.primaryColor

On 04.01.2014 17:14, Kimmo Lindholm wrote:


Tested, didn't work -- same results

.importSailfish.Silica.Theme1.0asSilicaTheme

var/color_info/=SilicaTheme.primaryColor;

>import Sailfish.Silica.theme 1.0

On 04.01.2014 16:49, Kimmo Lindholm wrote:

I assume this is clear as daylight but I don't get it...

I need to access Theme colors from javascript --file;

I have successfully imported it

.importSailfish.Silica1.0asSilica

and in QtCreator after typing Silica. I can see dropdown of all
sort of stuff, but no 'Theme'.

And tinkering didn't work:

var/color_info/=Silica.Theme.primaryColor;

It gives runtime warning from QML side where color_info is used:

[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to assign
[undefined] to QColor

And those which are colored from js side with color_info do appear
black...

-kimmo




___

SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Check for OS in .PRO file

2014-01-04 Thread David Greaves
Just for the record this will fail to build on the Community OBS or even in a
Mer Platform SDK using a SailfishOS target.

Thomas and Timur's suggestions would work.

David

On 04/01/14 10:42, Putze Sven wrote:
> Hi,
> 
> I should read my mails more often 8) Just figured out
> 
> win32|macx{
> SDKHOSTNAME=unknown
> }
> linux-g++{
> SDKHOSTNAME=$$system(hostname)
> }
> contains(SDKHOSTNAME , "SailfishSDK"){
> message("Heureka! Running on the MerSDK VM")
> }
> else{
> message("running somewhere else")
> }
> 
> 
> But I will also think about what you guys wrote, thank you!
> 
> BR.
> Sven
> 
> On 02.01.2014, at 20:25, Sven Putze  wrote:
> 
>> Hi there,
>>
>> first of all a happy new year to everyone! I had some time offline this 
>> morning, so here comes a bunch of emails...
>>
>>
>> There are ways to check for the OS in QtCreator .PRO files, e.g. like
>>
>> unix:symbian{ # do stuff}
>> unix:maemo5{ # do stuff}
>> macx{ # do stuff}
>> win32{ # do stuff}
>>
>> Is there a way to check (or control to be more precise) that some directives 
>> are only used when compiling on the MerSDL VM?
>> Just checking for the presence of "sailfishapp" does not work, because that 
>> is defined for any OS.
>>
>> BR.
>> Sven
>> ___
>> SailfishOS.org Devel mailing list
> 
> ___
> SailfishOS.org Devel mailing list
> 

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Kimmo Lindholm
Tested, didn't work - same results

.import Sailfish.Silica.Theme 1.0 as SilicaTheme
var color_info = SilicaTheme.primaryColor;



>import Sailfish.Silica.theme 1.0
On 04.01.2014 16:49, Kimmo Lindholm wrote:
I assume this is clear as daylight but I don't get it...

I need to access Theme colors from javascript -file;

I have successfully imported it

.import Sailfish.Silica 1.0 as Silica

and in QtCreator after typing Silica. I can see dropdown of all sort of stuff, 
but no 'Theme'.
And tinkering didn't work:

var color_info = Silica.Theme.primaryColor;

It gives runtime warning from QML side where color_info is used:
[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to assign [undefined] to 
QColor

And those which are colored from js side with color_info do appear black...


-kimmo







___

SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Andrey Kozhevnikov

import Sailfish.Silica.theme 1.0

On 04.01.2014 16:49, Kimmo Lindholm wrote:

I assume this is clear as daylight but I don't get it...
I need to access Theme colors from javascript --file;
I have successfully imported it
.importSailfish.Silica1.0asSilica
and in QtCreator after typing Silica. I can see dropdown of all sort 
of stuff, but no 'Theme'.

And tinkering didn't work:
var/color_info/=Silica.Theme.primaryColor;
It gives runtime warning from QML side where color_info is used:
[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to assign 
[undefined] to QColor
And those which are colored from js side with color_info do appear 
black...

-kimmo


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Kimmo Lindholm
I assume this is clear as daylight but I don't get it...

I need to access Theme colors from javascript -file;

I have successfully imported it

.import Sailfish.Silica 1.0 as Silica

and in QtCreator after typing Silica. I can see dropdown of all sort of stuff, 
but no 'Theme'.
And tinkering didn't work:

var color_info = Silica.Theme.primaryColor;

It gives runtime warning from QML side where color_info is used:
[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to assign [undefined] to 
QColor

And those which are colored from js side with color_info do appear black...


-kimmo



___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Check for OS in .PRO file

2014-01-04 Thread Putze Sven
Hi,

I should read my mails more often 8) Just figured out

win32|macx{
SDKHOSTNAME=unknown
}
linux-g++{
SDKHOSTNAME=$$system(hostname)
}
contains(SDKHOSTNAME , "SailfishSDK"){
message("Heureka! Running on the MerSDK VM")
}
else{
message("running somewhere else")
}


But I will also think about what you guys wrote, thank you!

BR.
Sven

On 02.01.2014, at 20:25, Sven Putze  wrote:

> Hi there,
> 
> first of all a happy new year to everyone! I had some time offline this 
> morning, so here comes a bunch of emails...
> 
> 
> There are ways to check for the OS in QtCreator .PRO files, e.g. like
> 
> unix:symbian{ # do stuff}
> unix:maemo5{ # do stuff}
> macx{ # do stuff}
> win32{ # do stuff}
> 
> Is there a way to check (or control to be more precise) that some directives 
> are only used when compiling on the MerSDL VM?
> Just checking for the presence of "sailfishapp" does not work, because that 
> is defined for any OS.
> 
> BR.
> Sven
> ___
> SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] SmoothedAnimation and Segmentation Fault

2014-01-04 Thread christopher . lamb

Hi Kimmo

If you suspect that this is a general Qt bug (as opposed to Sailfish  
specific), then the best place is the Qt Project Bug Tracker:


 https://bugreports.qt-project.org/secure/Dashboard.jspa

Do a search first to check if there is already a similar issue.

Cheers

Chris

Zitat von "Kimmo Lindholm" :


Hi,

I'm having issues with SmoothedAnimation giving Segmentation Fault sometimes.

Googling shows that I'm not alone, but could not find any recorded  
workarounds

I changed it to NumberAnimation and no segv anymore...

Should this be reported somewhere? or waht?

-kimmo







___
SailfishOS.org Devel mailing list