Re: [Ubuntu-phone] Manual music scanning

2016-11-05 Thread kaabud-lp
>Is there a command to manually scan for music? I.e. - I have my music on 
>an ext4 partition, located on the external sdcard of my M10, which I 
>manually mount after boot. The system by default scans the 
>/home/phablet/Music folder on startup, then stops scanning after that. 
>I've been manually mounting my ext4 partition  from the sdcard over the 
>/home/phablet/Music folder.
>


I think 

restart mediascanner-2.0 

should do the trick.

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] http daemon

2016-03-28 Thread kaabud-lp
> Von: Matthias Apitz 

> An: ubuntu-phone 
> Gesendet: 8:53 Samstag, 26.März 2016
> Betreff: [Ubuntu-phone] http daemon
> 
> 
> Hello,
> 
> Do we have any (light-wide) HTTP server in our App store?
> Thx
> 
> matthias



I hadn't replied to this question previously, because I thought you 
specifically wanted the server to be provided by the app store. Now in the 
light of your other question
https://lists.launchpad.net/ubuntu-phone/msg19168.html
I get to think that maybe this isn't actually such a strict requirement of 
yours, so here goes:

You can run a simple webserver like this:
python3 -m http.serversource: 
http://askubuntu.com/questions/617102/ubuntu-phone-simplehttpserver-python

I'm not sure whether this is preinstalled on ubuntu touch, or whether you need 
to install it (via making the system writable and apt install, or via other 
means).

Similarly as with my reply to your other question, I guess it should be 
possible to write a .desktop file that would start this web server via an icon 
if you so desire.

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] viewing local HTML files

2016-03-28 Thread kaabud-lp
>>>  I have in the HOME of phablet some tree with HTML (...) files:

>>> 
>>>  phablet@ubuntu-phablet:~$ ls -C1 diario2016/
>>>  diario.html
>>>  enanitos/
>>>  imagenes/
>>> 
>>>  (diario.html has  refernces into the subdirs enanitos/ 
>>> and
>>>  imagenes/).
>>> 
>>>  How can I view this locally on the BQ? I tried something like:
>>> 
>>>  ubuntu-app-launch webbrowser-app 
>>>  file:///home/phablet/diario2016/index.html 
>>> 
>>>  but with no luck.
>>> 
>> 
>> 
>>  A .desktop file like this works for me:
>> 
>>  [Desktop Entry]
>>  Name=web container
>>  Type=Application
>>  Exec=webapp-container --enable-addressbar --enable-back-forward 
>>  --webappUrlPatterns=/home/phablet/* /home/phablet/
>>  Terminal=false
>>  X-Ubuntu-Touch=true
>> 
> 
> Hello,
> 
> Thanks, where should I place this file?
> 
>  matthias
> 


Oh, sorry, I was a bit too brief - I thought you had been down the route of 
handwritten .desktop's before.

You put this in a new file here:
~/.local/share/application/
e.g.,

~/.local/share/application/MyWebContainer.desktop

For your purpose, I guess you will want to change the Exec= line into something 
like
Exec=webapp-container --enable-addressbar --enable-back-forward 
--webappUrlPatterns=/home/phablet/diario2016/* 
/home/phablet/diario2016/index.html


I can't fully remember where I did take the information about these parameters 
from, try a websearch. Or try leaving them out, the names are quite descriptive 
anyway.


In the .desktop file might want to adjust the Name= and Icon= lines to your 
liking.

Once you have saved that file you need to pull-down-to-refresh in the appscope 
and then a new launcher should show up.


Also, note that I'm not claiming that you /can't/ get this to work with 
webbrowser-app, but simply, I had this webapp-container snippet lying around 
and I /know/ that this one works for me.

Good luck, and let us know how it goes, or if somethings unclear.

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] viewing local HTML files

2016-03-27 Thread kaabud-lp
> I have in the HOME of phablet some tree with HTML (...) files:

> 
> phablet@ubuntu-phablet:~$ ls -C1 diario2016/
> diario.html
> enanitos/
> imagenes/
> 
> (diario.html has  refernces into the subdirs enanitos/ and
> imagenes/).
> 
> How can I view this locally on the BQ? I tried something like:
> 
> ubuntu-app-launch webbrowser-app file:///home/phablet/diario2016/index.html 
> 
> but with no luck.
> 


A .desktop file like this works for me:

[Desktop Entry]
Name=web container
Type=Application
Exec=webapp-container --enable-addressbar --enable-back-forward 
--webappUrlPatterns=/home/phablet/* /home/phablet/
Terminal=false
X-Ubuntu-Touch=true

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] font size/ accessibility

2016-02-13 Thread kaabud-lp
> Von: Florian Boucault 
>Adjusting the font sizes alone is a bad idea and was not part of the plan. 
>Doing so will usually break UIs in unpredictable ways. The reliable way to 
>scale fonts up or down is to scale the entire UI up or down with the 
>environment variable GRID_UNIT_PX. We will have an option in the system 
>settings app to do so one day.
>


Well, it seems that Markus tried the scaling based on GRID_UNIT_PX, but it 
didn't actually increase the fonts in a way that solved his problem:


On 12-02-16 12:43, Markus Wimmer wrote:
> Hi list,
> I just resized the GRID on my aquaris4.5 as described. ( was 13px, 
> zoomed it up to 15px)
> It kinda works, but it seems to affect mostly the icon size, the fonts 
> seem to be slightly bigger, but not as large as necessesary. I will play 
> around with size, but a higher value will surely not help, because it 
> looks real ugly with 15px at all, so I have not much confidence in 
> getting a better result by a higher value. The phone shows large Icons 
> with still very small Fonts beneath, and a lot of white  space that 
> could be filled by a readeable Font ;-)
> 

I completely understand that the /real/ solution for this topic will be worked 
on by the designers and developers in good time. However, I was wondering 
whether there was another temporary hack that could be offered to Markus right 
now, seeing that the GRID_UNIT_PX hack did not do the trick for him.

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] font size/ accessibility

2016-02-13 Thread kaabud-lp
While we wait for the proper settings to be implemented some day, do you know 
how one could adjust the font sizes /with/ some fiddling in the terminal today? 
Where would one start looking for related configurations?
 
  Von: Jouni Helminen 
 An: Oliver Grawert  
CC: Ubuntu Phone 
 Gesendet: 12:11 Freitag, 12.Februar 2016
 Betreff: Re: [Ubuntu-phone] font size/ accessibility
   
The default font sizes (which most apps and dash use) are defined in the UITK 
so it should be in principle be possible to adjust them without other changes 
in the UI, at least for apps that use the UITK and the default font sizes.

It would be nice to be able to change that, and the px/GU value without too 
much fiddling in the terminal, for non-technical people.

Perhaps we could expose both px/GU (or a less technical term for it) and font 
size scaling ratio separately - as slider controls - in system settings. This 
would allow a lot of flexibility for people who might need to adjust them for 
various reasons.


On Fri, Feb 12, 2016 at 10:57 AM, Oliver Grawert  wrote:

hi,
Am Donnerstag, den 11.02.2016, 19:22 +0100 schrieb Michał Sawicz:
> W dniu 11.02.2016 o 17:21, Oliver Grawert pisze:
> > well, thats a pretty bad hack since it will scale all UI elements
> > up/down, not just make the font bigger/smaller and might lead to
> > unpredicted results (certain UI elements rely on a fixed GU size...
> > i.e. the scopes), so if you use it, better dont file any bugs about UI
> > glitches anymore :)
>
> Hola hola,
>
> Nothing should rely on "fixed GU size" - it might be optimized for a
> certain size, but should scale as best possible to other sizes. That's
> what the dash does.
>
> If something breaks completely because of that, it's either because it
> just doesn't fit on screen, or is broken. And it should be fixed.
>
> That said, I agree scaling everything up will probably not give you the
> best result for this problem, but at least it is a partial one.
>
well, you are scaling down on our smallest device ... i know the space
will be filled properly if i scale up ... but want does the krillin do
if you scale it down by ... say 50% :)

ciao
        oli


--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp



-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to    : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help  : https://help.launchpad.net/ListHelp


   
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] font size/ accessibility

2016-02-11 Thread kaabud-lp
> Von: Markus Wimmer 
>An: ubuntu-phone@lists.launchpad.net 
>Gesendet: 21:32 Mittwoch, 10.Februar 2016
>Betreff: [Ubuntu-phone] font size/ accessibility
> 
>
>Hello list,
>I really like my bq aquaris 4.5 ubuntu edition.
>After a year of user experience there are two annoying things. GPS 
>nearly never worked as it should, in 9 out of ten cases it is just 
>guessing my position by the ip address, so that "nearby" shows places 
>100 kilometers away from where I am. This behaviour is more funny than 
>hurting for me.
>
>Really annoying is the small font size in general. For those 40plussers 
>like me, who need glasses to read newspapers and books, the "smart" part 
>of the smartphone is unuseable without reading glasses.
>Is there any way to customize the fontsize?  ( by edititing 
>configuration files?)
>Markus Wimmer
>


Next to the suggestions to create a bug/feature request for a /proper/ 
solution, you can employ a workaround right now. There is a modification with a 
configuration file described here - it's in German:

https://wiki.ubuntuusers.de/Baustelle/Ubuntu_Touch/Snippets/#Skalierung-der-Anzeige

Basically, you check with 


set | grep GRID 

What the value of the variable GRID_UNIT_PX is right now on your device, then 
you specify a new value by issuing that command

printf "start on starting dbus\nexec initctl set-env --global 
GRID_UNIT_PX='>> PUT A HIGHER VALUE THAN THE CURRENT SETTING HERE <<'\n" > 
~/.config/upstart/gu.conf 


and restart your device. That should change the size of all UI elements. You 
might have to play around a bit to find a value that works for you.

You execute these command on your Ubuntu Touch device, so, e.g. in the Terminal 
App. Let me know whether that works for you!

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] how to popup a message box on screen

2015-12-11 Thread kaabud-lp

On 11-12-15 19:35, sturmflut wrote:

Dear list,

Am 12/09/2015 um 11:10 AM schrieb Matthias Apitz:


How can I pop-up in parallel a message box on the screen with some text
like "Battery drain! Re-boot NOW and re-charge!", if possible together
with an OK button which fires up "sudo reboot"?


This is an excellent question, can anybody answer it?



What I do is, I have a few self written .desktop files that point to 
self written .sh files and in the script I have something like


notify-send "Message" "Some more text"

which shows up as a notification. I know of no way to get the ok button 
or how to trigger the reboot. Also, I'm not sure whether triggering such 
a notification from a cron job is any more difficult.




--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp