Re: [SailfishDevel] Deploy QSQLite database

2014-06-18 Thread Michael Neufing
Hi,

my app needs an SQLITE db, also. I deploy it into 
/usr/share/harbour-{APPNAME}/data.
You could then use it either from this location, or copy it into the home dir 
on the first run.

As the db seems to be readonly, I think you don't need to copy it into the home 
dir.
 
Mit freundlichen Grüßen, 

Michael Neufing 



Saija Saarenpää setel...@live.com schrieb am 8:41 Mittwoch, 18.Juni 2014:
 


Hi,

What comes to having datalocation path variable in the .pro file:
I was having similar thoughts when I wanted to install something in the 
writable storage location, but I was corrected. Nothing should be installed in 
the home directory with the application, but under application directory 
/usr/share/harbour-yourappname/. There can be also subdirs under that location. 
Then, at runtime, you can create the writable storage location if it does not 
exist, and copy or create stuff there. Preferably the app would not pre-install 
any data, but everything would be downloaded / created runtime. That would be 
the ideal though, not always applicable.

- Saija
@setelani
matrixx #sailfishOS

Lähetetty iPadista

Andrey Kozhevnikov coderusin...@gmail.com kirjoitti 18.6.2014 kello 8.50:


you should build and deploy as RPM package ;)


18.06.2014 03:42, Lukas Vogel пишет:

Hi there, 


I try to create an app in which I want to have an existing database bind in 
the binary.


My approach was the following: 
in pro file:
QT +=sql
database.files=stations.db
database.path=/home/nemo/.local/share/harbour-qtimetable/harbour-qtimetable
INSTALLS += database
To open the database:
db = QSqlDatabase::addDatabase(QSQLITE);
db.setDatabaseName(DB_NAME);
db.setUserName(USER_NAME);
db.setPassword(PASSWORD);
db.setConnectOptions(QSQLITE_OPEN_READONLY=1); 
if(db.open()) {...}
for DB_NAME I use 
QStandardPaths::writableLocation(QStandardPaths::DataLocation) with 
stations.db appended. 
However when I deploy this will fail as the path on emulator has
home/deploy/installroot/ prefix, and when deploying on device there is 
/opt/sdk/.. 
prefix. 
This makes testing quite annoying, is there a genuine way to get the database 
to open both in the emulator and the device? 
Side question is there a standard path::datalocation variable for the .pro 
file?
Thanks for any help,
Lukas


___ SailfishOS.org Devel mailing 
list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Python in Jolla Harbour and repositories ?

2014-06-18 Thread Thomas Perl
Hi,

2014-06-11 7:43 GMT+02:00 Roberto Colistete Jr. roberto.colist...@gmail.com:
 So I want to be maintainer for python-sympy and python3-sympy. I've
 contacted w00t about it.

Talked with Robin about it. I guess first step would be to set up the
packaging using tar_git and get familiar with how things are packaged
in Nemo Mobile:

https://wiki.merproject.org/wiki/Nemo/Development#With_tar_git_service

Get an account for the Mer OBS:
https://build.merproject.org/

Then set up a Git repository (e.g. on Github) with tar_git (tar_git is
not used directly, it's a tool that is used when the OBS checks out
your source code from Git and the builds it).

This might take some time to grasp, but it will make maintaining the
packaging easier down the road, and it will give you e.g. free RPM
changelogs by writing good Git commit messages (with special format as
described in the Wiki).

 SymPy is very stable for API use. For example, my softwares Limit,
 Derivative and Integral (for Maemo 4, Maemo 5 and Sailfish OS) are
 compatible with SymPy from 2011 to 2014.

Sounds stable, yes.

 IPython (which you probably don't depend on in your app?) is less of a
 problem API stability-wise - it can just be available in the
 repositories to be installed from the command line.

 If possible I would like to be maintainer of IPython, NumPy and
 MatPlotLib on Mer/NemoMobile/Sailfish.

The best way is probably to start with one of these, set up a source
tree that's using tar_git, and then get the Mer OBS to build an RPM
package from the Git source tree. After that, the next step would be
to see where we put this in the Nemo Github organizations.


HTH :)
Thomas
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Call for Moderators ( ML, TJC, IRC)

2014-06-18 Thread Iekku Pylkka
Ahoy,

As a kind reminder :) To get things ongoing, please give your nomination before 
end of June 2014. :)

We need community help with moderating this mailing list, together.jolla.com 
and #sailfishOS channel on Freenode IRC. Idea is to have both Jolla sailors and 
community members as moderators to make decisions (when needed) together. So, 
please volunteer or nominate fellow community member as moderator by sending 
email to developer-c...@jolla.com. Mail should contain at least nominated 
person's nick (for IRC) or email address (for mailing list) and where this 
person is nominated. Example: de...@devel.org for ML, devel for IRC. We will 
collect nominations and arrange a voting.

For TJC, the process is a bit different. There is already a call for moderators 
earlier this year [1]. Let's continue using this for nominations and voting.

Take a look at the community guidelines draft [2] and add your comments.

Regarding the responsibilities of a moderator/channel op, it is generally to 
make sure the community guidelines [2] are followed, to issue warnings when 
necessary, and in the case of TJC, you'll have in addition the tools to keep 
the posts organized (more info in [1]). We can provide a backchannel for 
discussions between moderators if the need arises.

If you are already fairly active in some channel (IRC/ML/TJC), being a 
moderator should not take up much more of your time. By being slightly more 
attentive and taking little steps in making the community work more 
harmoniously and efficiently together, you will probably even help save 
everyone's time in certain cases!

Let the nominations begin!

Br,
Iekku, Carol and Eric


[1] 
https://together.jolla.com/question/15847/doing-it-together-community-moderatorscontributors-wanted/
[2] http://piratepad.net/sailfish-community-guidelines



Br,
Iekku Pylkkä
Head of Developer Affairs @ Jolla http://jolla.com
https://sailfishos.org/


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Cover Page Image

2014-06-18 Thread Chris Walker
On Mon, 16 Jun 2014 10:22:20 +0300
Juha Kallioinen juha.kallioi...@jolla.com wrote:

 On 13.06.2014 21:16, Chris Walker wrote:
 
  Is this relevant to my problem above? I don't see how, but you never
  know!
 
  error: unpacking of archive failed on
  file /usr/share/scratchbox2/modes/sdk-build: cpio: rename failed -
  Is a directory
 
  This was from an attempted update after the above failure.
 
 Hi,
 
 I'm not sure if this is relevant to your original problem, but that 
 error looks like one that might come if you update the MerSDK with 
 zypper dup instead of letting the SDK updater update/replace all of
 the components. If this is the case, I suggest that you either let
 the updater do its job or do a complete reinstall of the SDK.

As far as I can recall, I have never updated any of the components
individually, only through the Creator update mechanism.

As I pointed out above, the error manifests itself when trying to run
an update through Creator.

I can't say I like the idea of a complete reinstall of the SDK to fix a
problem. That looks like a Microsoft way of fixing things!

Are there no flags representing an update state? I could amend one to
force a more major update to resolve the issue instead of the complete
reinstall.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Support for Xwayland in Lipstick?

2014-06-18 Thread martin brook
Chris Hi,

I have run xterm using xwayland on qml-compositor in the past




On Wed, Jun 18, 2014 at 10:44 AM, Chris Mailer chris.newsm...@gmail.com
wrote:

 Since Xwayland recently made it into X11[1,2], I only wonder if it is
 also supported by lipstick or if weston is the only compositor to
 support Xwayland to date?
 Thanks in advance,

  Chris

 [1] http://wayland.freedesktop.org/xserver.html
 [2]
 http://cgit.freedesktop.org/xorg/xserver/commit/?id=6e539d8817f738289dc2dea13d0720116287ab9d
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Prototype 'TextBaseItem' from 'TextBase' could not be resolved (M301)

2014-06-18 Thread i...@flyingfischer.ch

Just in case any body else runs into the error

(process:957): dconf-CRITICAL **: unable to open file 
'/etc/dconf/db/vendor': /etc/dconf/db/vendor: invalid gvdb header; 
expect degraded performance


I got this error only with the VirtualBox OSE (Open Source Edition) on 
Ubuntu. That's how I resloved it:


Deinstalled Sailfish IDE

sudo apt-get purge virtualbox virtualbox-qt virtualbox-dkms 
virtualbox-guest-dkms


Install Virtualbox from here

https://www.virtualbox.org/wiki/Linux_Downloads

Reinstall Sailfish IDE

Markus
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org