File size: 25,355 Bytes
4aa5fce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
=== aaron is now known as Guest84817 [03:36] <m_jimmer> Hi there I am creating a application and nothing is showing up after compile All I have is a mainview and a loader under it that has a page that loads . Any suggestions ? [03:38] <m_jimmer> Here is the code http://pastebin.com/nMFVWQsA [03:41] <m_jimmer> my main.cpp http://pastebin.com/mzdHfMBd [03:41] <m_jimmer> I snipped some of the imports but nothing major [03:42] <m_jimmer> anyways the loader says that everything is loaded up alright . but no window shows up at all. [03:54] <m_jimmer> If I build the application with out Ubuntu-Componets with my Downloaded Qt kit it shows up and works ... not sure what is going on here. === chihchun_afk is now known as chihchun [04:30] <m_jimmer> I have to reboot brb [05:19] <m_jimmer> Ok I think I figured it out. It s not linking to some internal libs. Tim to debug why. [05:22] <m_jimmer> what is odd is that it builds with no errors and says that it is linked. But when I run ldd the two internals are not found. Super odd [06:19] <m_jimmer> Note: Ubuntu applicaitons must use QQuickView the QQmlApplicaiton can not render on its own. That must be a bug. [07:42] <dholbach> good morning [07:48] <m_jimmer> good morning dholbach [07:48] <dholbach> hi m_jimmer [07:52] <m_jimmer> Hey dholbach . Hope that you are doing wonderful . I am doing Ok . deving up a application. Trying to figure out how I can make it so close to Qt default components and also close to Ubuntu ones. [07:53] <dholbach> I'm doing well, thanks :-) [07:53] <dholbach> all the best with your app! [07:53] <m_jimmer> thanks :) [08:06] <m_jimmer> does anyone know about the Dialogs on the phone ? Like when they pop are they always center in ? Or do I need to do math for x and y ? === ikonia_ is now known as ikonia === davmor2_ is now known as davmor2 [09:42] <JamesTait> Good morning all! Happy Monday, and happy Freedom Day! 😃 [09:49] <m_jimmer> So I am making a login thingy at the moment and was wondering whta you all thought was a good passwd. I was thinking of having something like "extremely poor,poor ,Ok, good,Great" I am making this QRegEx and just whanted to see whta you all thought [09:52] <m_jimmer> Like it is on a scale of 0 -- 100 . Or well if it goes above 100 then it is still 100 [09:56] <m_jimmer> http://postimg.org/image/wcjdymy7n/ << For a better Idea === Guest84817 is now known as ahoneybun [10:08] <ahoneybun> \o/ [10:09] <ahoneybun> hola people I'm having issues with Tabs [10:09] <ahoneybun> http://pastebin.ubuntu.com/14848705/ === ogra_` is now known as ogra_ [10:22] <mivoligo> JMulholland: Hi! I managed to create other numbers based on those Ubuntu CD covers, so you don't have to find them for me :) [10:34] <mivoligo> ahoneybun: what kind of problem? [10:39] <ahoneybun> mivoligo, I can't get my About.qml page to load which causes the whole app not to start in the SDK [10:40] <ahoneybun> it is the 4th Tab in that pastebin [10:40] <mivoligo> what error you get? [10:41] <ahoneybun> Type About Unavailable [10:41] <ahoneybun> I updated all the files to Ubuntu.Components to 1.3 from 1.1 I think [10:41] <ahoneybun> but the other Tabs don't give that error [10:41] <mivoligo> can we see rest of the code? [10:42] <ahoneybun> I posted the main.qml [10:42] <ahoneybun> want the About.qml? [10:42] <mivoligo> yes, please :) [10:42] <ahoneybun> http://pastebin.ubuntu.com/14848811/ [10:43] <ahoneybun> I'm also getting this: About.qml:25 ListItem.Header - ListItem is not a namespace [10:43] <ahoneybun> not sure why [10:43] <ahoneybun> I removed all the ListItems and still it is there [10:43] <mivoligo> you have "import Ubuntu.Components.ListItems 1.3 as ListItem" [10:44] <ahoneybun> yes? [10:44] <mivoligo> 3rd line [10:44] <ahoneybun> what's wrong with it? [10:45] <mivoligo> there's no version 1.3 AFAIK [10:45] <ahoneybun> mm [10:45] <mivoligo> and it's not needed really :) [10:45] <ahoneybun> https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ListItems.Standard/ [10:45] <ahoneybun> I remove it and the same thing [10:46] <ahoneybun> the error talks about a line that is not even there anymore [10:49] <mivoligo> hmmm... that's strange, how do you run it? [10:49] <ahoneybun> from the SDK? [10:49] <mivoligo> to the phone? [10:49] <ahoneybun> no [10:49] <ahoneybun> I can't even get it to run on the desktop [10:50] <ahoneybun> I've added back the Header and Standard to the same error [10:50] <ahoneybun> hell I've deleted the file and still get it [10:50] <mivoligo> maybe it runs the same build every time [10:50] <ahoneybun> maybe [10:50] <m_jimmer> ahoneybun, go to your qt install dir see it is is there. read the qmldir file if you have wrong version [10:51] <ahoneybun> qt install dir? [10:51] <m_jimmer> like /usr/lib/x86_64/qt5/qml [10:51] <m_jimmer> like /usr/lib/x86_64/qt5/qml/Ubuntu/Components/ListItems [10:51] <m_jimmer> ahoneybun, you can find that out with qmake -query [10:52] <ahoneybun> but I'm not using qmake [10:52] <m_jimmer> there is a var call QT_INSTALL_QML [10:52] <m_jimmer> that does not matter [10:52] <ahoneybun> I have the dir x86_64-linux-gnu [10:52] <m_jimmer> qmake is also a command line tool and the command "qmake -query" is just that [10:53] <ahoneybun> no Ubuntu folder [10:53] <m_jimmer> what does "qmake -query | grep QT_INSTALL_QML" [10:53] <m_jimmer> say [10:53] <ahoneybun> QT_INSTALL_QML:/usr/lib/x86_64-linux-gnu/qt5/qml [10:54] <m_jimmer> what is under /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu ? [10:54] <m_jimmer> ahoneybun, you just replace the dots in your import with / : ) [10:55] <ahoneybun> I found the qmldir [10:55] <ahoneybun> ??? [10:55] <ahoneybun> I have 1.3 [10:55] <m_jimmer> : ) what is the error that you are getting on import ? [10:56] <m_jimmer> maybe you are using wrong kit ? [10:56] <ahoneybun> it is the desktop [10:56] <m_jimmer> or lib is not so good ? there are ways to test that also. [10:56] * ahoneybun throws the SDK out the window [10:57] * ahoneybun also needs more coffee [10:57] <ahoneybun> file:///home/aaron/Projects/2.0/.ubuntu-sdk-deploy/main.qml:57 Type About unavailable [10:57] <ahoneybun> file:///home/aaron/Projects/2.0/.ubuntu-sdk-deploy/components/About.qml:25 ListItem.Header - ListItem is not a namespace [10:57] <ahoneybun> those are my 2 errors [10:58] <m_jimmer> ahoneybun, are you sure that the "namespace" [10:58] <m_jimmer> there it is [10:58] <m_jimmer> call it something else lol [10:58] <ahoneybun> what? [10:58] <m_jimmer> import Ubuntu.Components.ListItems 1.3 as IAmAwesome [10:58] <ahoneybun> that is what the Docs say [10:58] <m_jimmer> bad docs lol [10:58] <ahoneybun> ... [10:58] <ahoneybun> same thing [10:59] <m_jimmer> you have to also change About.qml:25 ListItem.Header - ListItem is not a namespace [10:59] <ahoneybun> and this is why you should not try to fork something [10:59] <m_jimmer> to IAmAwesome.Header [10:59] <ahoneybun> ................................ [11:00] <ahoneybun> same error [11:00] <ahoneybun> same no matter what [11:00] <ahoneybun> so I have 2 Run things [11:00] <ahoneybun> UbuntuBegginer and QML Scene [11:01] <m_jimmer> Now that is odd. what is ls /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/ListItems [11:02] <ahoneybun> mm [11:02] <ahoneybun> so it was some old build I think [11:02] <m_jimmer> ;) [11:03] <ahoneybun> mm [11:03] <ahoneybun> so Tabs are handled differently now [11:03] <ahoneybun> ??? [11:03] <ahoneybun> my tabs are not working now [11:03] <m_jimmer> you could also hard run qmlscene by its full path to make sure. and Run ldd against th libs to make sure that there is missing libs . [11:04] <m_jimmer> ahoneybun, IDK I just started with Ubuntu sdk last night. I just know Qt Real well [11:04] <ahoneybun> main.qml [11:04] <ahoneybun> opps [11:04] <ahoneybun> I'm really crap at it [11:04] <ahoneybun> my app was last updated 7 months ago [11:05] <ahoneybun> so lots of changes [11:05] <m_jimmer> I gave up on the Ubuntu ui toolkit and made my own because Qml profiler said there was way to may loaders and taking to long for things to load [11:05] <ahoneybun> mm [11:05] <ahoneybun> Loaders? [11:05] <ahoneybun> mm [11:05] <m_jimmer> but that is just me. I have nothing against it [11:05] <ahoneybun> https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Tabs/ [11:05] <m_jimmer> not bashing anything here. [11:05] <ahoneybun> source: (tabs.selectedTab === externalTab) ? Qt.resolvedUrl("MyCustomPage.qml") : "" [11:05] <ahoneybun> I'm wondering if I have to do this now [11:06] <ahoneybun> this seems to now work anymore: http://pastebin.ubuntu.com/14848877/ [11:06] <m_jimmer> ahoneybun, there is nothing wrong with one or two loaders that you use as a Singleton object it is when you haev 10 of them running [11:07] <ahoneybun> don't make my head hurt anymore dude lol I still have to go to work yet [11:07] <ahoneybun> I think I might go back to GTA5 [11:07] <ahoneybun> lol [11:07] <m_jimmer> what is GTA5 ? [11:08] * m_jimmer googles sorry [11:08] <ahoneybun> video game? [11:08] <m_jimmer> Yeah I jsut seen that [11:08] <m_jimmer> just * [11:09] <m_jimmer> I am writing encryotion lib and getting caught in a "what comes first the chicken or the egg " Thingy [11:09] <m_jimmer> but it is fun :) [11:10] <ahoneybun> \o/ [11:10] <ahoneybun> it worked [11:10] <m_jimmer> awesome :) [11:10] <ahoneybun> well [11:10] <m_jimmer> good job. [11:10] <ahoneybun> the app started [11:11] <ahoneybun> just missing one tab [11:11] <ahoneybun> funny [11:11] <ahoneybun> the one I thought would work [11:17] <ahoneybun> and it's back up [11:17] <ahoneybun> everything is working [11:27] <ahoneybun> always on the first launch the Label is flowing into the Tabs === chihchun is now known as chihchun_afk === lool- is now known as lool === JamesTait is now known as Guest5410 === wendar_ is now known as wendar === Guest5410 is now known as JamesTait === JamesTait is now known as Guest73851 === Guest73851 is now known as jayteeuk === jayteeuk is now known as JamesTait [18:01] <popey> balloons, so, what needs doing to un-dead the jenkins zombies? https://core-apps-jenkins.ubuntu.com/ ? [18:05] <balloons> popey, aye.. Weird stuff indeed [18:05] <balloons> popey, it's the ole java.io.IOException: No space left on device [18:10] <balloons> popey, so I'll reduce the number of builds to keep on everything, and ask IS to clear up some space on the node [18:10] <popey> how did you know it's disk space, where'd you see that? [18:10] <popey> oh, i see, click dead :) [18:11] <balloons> https://core-apps-jenkins.ubuntu.com/computer/ shows status, and yea :-) [19:56] <popey> balloons, do i see things getting processed now? [19:56] <popey> balloons, do i need to manually chug through each merge and re-approve them? [20:08] <ahoneybun> anyone having Labels over flow to the top Tab? [20:08] <ahoneybun> but only on the device not in the Local build [20:19] <ahoneybun> mm the ActionBar does not work right with Tabs I see [20:35] <balloons> popey, if things got unapproved, yes. But they shouldn't have been toggle off -- they never ran [20:36] <popey> e.g. https://code.launchpad.net/~renatofilho/ubuntu-calendar-app/sdk-1-3/+merge/284454 [20:36] <popey> approved, not merged [20:36] <popey> gah, conflicts [20:37] <popey> renatu, seen those conflicts on your calendar merges? [21:34] <balloons> Happy Birthday DanChapman. In a few hours anyway. Nonetheless, enjoy yourself! [21:37] <ahoneybun> ahayzen, around? [21:37] <ahayzen> ahoneybun, o/ [21:37] <ahoneybun> have you had problems with Labels overflowing into Tabs? [21:38] <ahayzen> ahoneybun, define overflowing? [21:38] <ahayzen> ahoneybun, and what are they inside? [21:38] <ahoneybun> the Tab [21:38] <ahoneybun> let me get a ss [21:39] <ahoneybun> http://imgur.com/tqpuKVT [21:39] <ahoneybun> but once you switch Tabs it is fine [21:39] <ahoneybun> just on first launch [21:40] <ahayzen> ahoneybun, hmm, what is the content inside the tab inside? like a Page ? or something [21:41] <ahayzen> and is it flickable ? [21:41] <ahoneybun> well each tab is in it's own qml file [21:41] <ahoneybun> yea [21:41] <ahoneybun> it does not happen on the desktop though [21:41] <ahayzen> ahoneybun, maybe the new sdk version has made it worse [21:41] <ahoneybun> mm maybe [21:41] <ahayzen> ahoneybun, does it happen on all the tabs? [21:41] <ahoneybun> I mean I could just take the Label off [21:42] <ahoneybun> well I have a Label on another tab but it renders it fine [21:42] <ahayzen> ahoneybun, compare the differences :-) [21:42] <ahoneybun> and when I switch back to the home tab it looks fine [21:42] <ahoneybun> I have, I've copied it all [21:42] <ahayzen> heh [21:42] <ahayzen> ahoneybun, can you pastebin the tab code for the one that is bad? [21:44] <ahoneybun> remember it works fine once you switch to a different tab and back [21:44] <ahoneybun> http://pastebin.ubuntu.com/14852592/ [21:44] <ahoneybun> I do need to file a bug against the lock screen too [21:44] <ahoneybun> since Dec really [21:45] <ahayzen> ahoneybun, how is the tab part defined in the other file ? [21:45] <ahoneybun> I really want to use actions on the listitems to have a button to click to open the links too but that is another story lol [21:45] <ahoneybun> in the main.qml ? [21:45] <ahayzen> ahoneybun, yeah that one [21:45] <ahoneybun> http://pastebin.ubuntu.com/14848877/ [21:46] <m_jimmer> what is the i18n in C++ so I can translate that also ? [21:46] <m_jimmer> thanks [21:46] <m_jimmer> example [21:47] <m_jimmer> QString fooBar = QString("Some Random String that says %1").arg("Hello"); tr(fooBar); [21:47] <ahayzen> ahoneybun, maybe the Column needs to be anchored to the flickable or needs a height set? i'd have to play about with it to figure it out [21:48] <ahoneybun> looking at that SS I see that it says About yet it should say Home [21:48] <ahoneybun> mm [21:52] <dobey> m_jimmer: use standard gettext in C++ [21:52] <m_jimmer> dobey, not sure what you mean. Here is a function http://pastebin.ubuntu.com/14852628/ [21:53] <dobey> m_jimmer: so you'd just do QString(_("Foo bar %1")).arg("Hello") for example, don't recall exactly which header to include that defines _ though [21:54] <m_jimmer> ok. there is a thing like in Qt like tr() ? but your guys translation functions ? [21:55] <ahoneybun> ahayzen, changing the anchor margins of the flickable did something good [21:55] <dobey> we don't generally use Qt's translations feature; we use gettext instead, as Qt's thing is specific to Qt [21:55] <ahayzen> heh ahoneybun does it start correct when you then go to another tab and back again? [21:55] <m_jimmer> dobey, is there a IFDEF for Ubuntu Sdk that you know of ? [21:56] <ahoneybun> yea when I switch tabs [21:56] <ahayzen> ahoneybun, and try on the Page putting anchors { fill: parent } [21:56] <dobey> m_jimmer: i don't think so, no. the ui toolkit APIs are not exposed via C++ [21:56] <ahoneybun> what margins can I edit just for the top? [21:57] <dobey> m_jimmer: you could just define all the strings in QML instead, and have the c++ set a property to fill in args as needed, and use the QML APIs for translations then [21:57] <ahayzen> ahoneybun, topMargin ? [21:57] <ahayzen> ahoneybun, but really it should work doing fill: parent etc... like it work for us in Music [21:57] <ahayzen> (our tab component starts here http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/music-app.qml#L640 ) [21:57] <m_jimmer> Ok yeah I was thinking that I would set a global var that is if u_sdk then blah blah blah . if not use Qt. I am trying to make this so It is very very easy to compile against Qt with or without the SDK [21:57] <m_jimmer> thanks dobey ^^ [21:57] <ahoneybun> in the flickable? [21:58] <ahayzen> ahoneybun, in the Page {} in the main.qml [21:59] <ahayzen> ahoneybun, oh! [21:59] <ahayzen> oh no you already do that [22:01] <ahoneybun> atm I'm wondering why it says About rather then Home [22:01] <ahayzen> ahoneybun, ah, magic maybe it is on the wrong tab? [22:01] <ahoneybun> mhall119, ping [22:02] <ahayzen> ahoneybun, try setting the currentTabIndex [22:02] <ahoneybun> ? [22:02] <dobey> m_jimmer: i don't know what you're writing but if you're just doiong pure Qt, then use the standard Qt translations feature I guess. [22:02] <ahayzen> ahoneybun, for example ... tabs.selectedTabIndex = 0 [22:03] <ahayzen> we do that on startup [22:03] <ahoneybun> that topMargin trick lowers it on when you switch but what ever [22:03] <ahayzen> ahoneybun, but then does it still say the About rather than Home? [22:03] <ahoneybun> when I switch to another tab and then Home it say Home the second time [22:03] <ahayzen> ahoneybun, add to your Tabs {} ... Component.onCompleted: selectedTabIndex = 0 [22:04] <ahoneybun> mm that currentindex thing is losing me [22:04] <ahayzen> ahoneybun, i think it is just showing the last one you define [22:04] <m_jimmer> dobey, Do you know about the confinement of a applicaiton in the sdk? I am writing a app that is a mix between ansible tower and nagios . and was jsut thinking about sftp or scp bindings., That brought up the thought of do I need my own file manager to get access to upload files ect . [22:04] <ahoneybun> all my tabs? [22:04] <ahayzen> so Home = 0, Contribute = 1, Family = 2, About = 3 ... so they order you define them get an inex [22:04] <ahayzen> *index [22:05] <m_jimmer> property alais tabsChilderen : mainTab.children [22:05] <m_jimmer> err sorry [22:06] <ahoneybun> mm [22:06] <ahoneybun> not sure I'm putting them in the right place [22:07] <ahoneybun> http://pastebin.ubuntu.com/14852701/ [22:07] <ahayzen> ahoneybun, no in the Tabs {} ;-) [22:07] <ahoneybun> I did :) [22:07] <m_jimmer> dobey, like if I am to write a exposed QDirAbstractModel or something and then expose to Qml can I read | write to files ? [22:08] <dobey> m_jimmer: your app can't read arbitrary files from disk. [22:08] <m_jimmer> System wide. Or do I need to do some tricks. Like switching users with pam or something [22:08] <ahayzen> ahoneybun, like this http://pastebin.ubuntu.com/14852714/ :-) [22:08] <dobey> m_jimmer: you would need to use content-hub API if you to be able to read files from somewhere [22:08] <ahayzen> ahoneybun, in the Tabs {} .. not the Tab {} ;-) [22:08] <m_jimmer> dobey, thanks will look at that code. [22:09] <m_jimmer> dobey, what about creation of files with QFile QDir ect if I place in application dir ? [22:10] <m_jimmer> dobey, another reason I ask is because I have encryption lib that is needed to unlock files to log into applicaiton and want to make sure that I can run try and catch against [22:10] <ahoneybun> nope [22:11] <ahoneybun> damn Ubuntu.Components 1.3 [22:11] <popey> haha, i love that a youtube video showing the ubuntu phone terminal is currently at the top of /r/linux :) https://www.reddit.com/r/linux [22:12] <ahayzen> ahoneybun, does that not even fix the wrong label? [22:12] <m_jimmer> dobey, or mayb I have to do something crazy like make lxc container for just this application. But then it is like getting to C groups could be real odd and time consuming [22:12] <ahoneybun> well I had the topMargin on so idk [22:12] <dobey> m_jimmer: you can only mess with files within the application's XDG directories === _salem` is now known as _salem [22:12] <m_jimmer> Is there no way to make the file system more then read only ? [22:13] <ahayzen> ahoneybun, anyway i've got to go, good luck :-) [22:13] <ahoneybun> no [22:13] <m_jimmer> like a trick [22:13] <ahoneybun> thanks as always [22:13] <dobey> m_jimmer: i'm not entirely sure what you're doing, but it sounds like you are making things way more complex than they should be [22:13] <dobey> m_jimmer: there is, but it's not something that people should be doing in general [22:13] * ahoneybun is tempted to flash Android back [22:13] <dobey> m_jimmer: if making the root FS read-write is a requirement of your application, you're not developing an application for the phone [22:14] <m_jimmer> dobey, so say that I want Download a file wih Qnetwork[Acess ,Request,Respond] and I want save to say DL folder then maybe upload to all connected nodes (servers) [22:14] <m_jimmer> like a git repo or something that has "moduals " [22:15] <m_jimmer> like bash and whta not that can be run with remote qprocess [22:15] <dobey> you are making things way more complex than they probably need to be [22:15] <m_jimmer> download file -> add to JSON or XML -> push to all servers [22:15] <dobey> because i don't understand at all what you actually need to do, given your description of it [22:16] <m_jimmer> dobey, do you know what ansilbe or puppet is ? [22:16] <m_jimmer> also nagios ? [22:16] <dobey> like i said, you can only write data to the app's XDG dirs [22:16] <m_jimmer> take the two and put them together that is what I am making [22:16] <dobey> i've used puppet before, yes [22:16] <m_jimmer> http://www.ansible.com/tower [22:17] <m_jimmer> dobey, so Like puppet but with pure ssh . with timers that are used to run remote commands to check on server status [22:17] <dobey> your app cannot run forever under confinement [22:18] <m_jimmer> Oh no no background process are allowed ? [22:18] <dobey> right [22:18] <m_jimmer> I am glad we are talking aout this now [22:18] <m_jimmer> I can not make a init script to start app on boot or systemd thingy ? [22:18] <dobey> the app lifecycle prevents your application from processing while it is not in the foreground with the screen on [22:18] <dobey> no [22:19] <dobey> you can't create any apps which requires altering the root FS and put them in the store [22:19] <m_jimmer> dobey, even if I create a console application that say starts after gui is opened ? [22:19] <dobey> your app must work within its own confinement, and within the application life cycle [22:20] <m_jimmer> Ok just thinking of work arounds. maybe I need to have server app(console in container ) [22:20] <dobey> you can personally create a chroot in the data area of your phone and run stuff in it if you want [22:20] <m_jimmer> lxc or something on the cloud [22:20] <dobey> but you cannot do this in a confined app from the store [22:21] <m_jimmer> dobey, so the applicaiton would need to get approved as something like a "Core application " [22:21] <m_jimmer> Some sorta special permissions via apparmor ? [22:22] <dobey> no, i'm pretty sure we're not going to ship something by default which runs constantly in the background to poll ansible servers and run remote commands on them, on phones [22:22] <m_jimmer> maybe I could make two app's one that sits on desktop . then other that is nothing but kinda api layer [22:22] <dobey> you need to architect your application within the confines of the app lifecycle and the security polices enforced upon it, if you want it in the app store [22:23] <m_jimmer> ouch. Ok let me do some more thinking abut the architect of the flow [22:23] <m_jimmer> could use say zeroMQ to pass data or something like websockets [22:24] * m_jimmer brain starts wondering [22:24] <dobey> i don't know what your end goal is, but my suggestion would be to think of something that avoids the need for background processing [22:26] <m_jimmer> dobey, I think that I got it. I just need to now figure out the "node scripts" Like the modules of puppet [22:27] <m_jimmer> like send command over websockets (binary ) to server that can download then expose to a custom api [22:27] <m_jimmer> sorry server being someones desktop [22:27] <m_jimmer> I wanted to avoid the whole how to depoly with out a master though ... [22:28] * m_jimmer does more thinking about the chicken or the egg [22:32] <m_jimmer> dobey, do you know if I can use websockets or any tcp/ipc transport from phone ? [22:33] <m_jimmer> concern is ports [22:33] <dobey> m_jimmer: you can talk to the network yes, if your app has the "network" apparmor profile iirc; but you can't run a server on the phone in your app [22:33] <m_jimmer> \o/ [22:34] <m_jimmer> now to zeroMq or to websocket ... that is the question :) [22:40] <m_jimmer> Ok final Question for a while (not to great with xdg so excuse if repetitive) do I have to set my Offline storeage to my app's root dir ? or can it be default ? [22:41] <m_jimmer> also getting a odd error on the qqmlengine for quit :/ [22:41] <m_jimmer> Signal QQmlEngine::quit() emitted, but no receivers connected to handle it. [22:42] <m_jimmer> I have to write hat into my main.cpp I guess. rough [22:51] <dobey> i don't know what that means [22:56] <dobey> m_jimmer: sorry, i don't know what you mean by set your offline storage. but i have to go now. good luck [22:57] <m_jimmer> thanks dobey for all your help it has been very nice of you . But for your future you can look at the docs and find the function [22:57] <m_jimmer> void setOfflineStoragePath(const QString & dir) [22:57] <m_jimmer> it is part of the QQmlEngine [22:57] <m_jimmer> helps with things like sqlight [22:58] <m_jimmer> and cache and what not [23:36] <renatu> popey, I removed your branch as pre-requisite for merge. And the conflicts disappears. :D [23:36] <renatu> popey, did you push anything new since last week? [23:37] <renatu> popey, this is the new MR: https://code.launchpad.net/~renatofilho/ubuntu-calendar-app/sdk-1-3/+merge/284686 [23:40] <popey> ok |