How to get a program window into the task/window switcher?

2009-04-27 Thread Faheem Pervez
From: Faheem Pervez tripp...@gmail.com
Date: Mon, Apr 27, 2009 at 4:00 PM
Subject: Re: How to get a program window into the task/window switcher?
To: Martin Wegner martinator...@arcor.de


Hello,

Here's a SDL example:

Building and running http://olofson.net/download/parallax-2.tar.gz and
pressing home only shows me the terminal I started it with:
http://i42.tinypic.com/124wyub.png

sdlonly
For SDL (and SDL only) , you have to add a
putenv(SDL_VIDEO_X11_WMCLASS=app); because SDL under Maemo seems to
report the same WMCLASS for every SDL app.
So I've added putenv(SDL_VIDEO_X11_WMCLASS=parallax); above
SDL_Init(SDL_INIT_VIDEO); and this forces the WMCLASS of this app to be
parallax. Other apps usually have a correct WMClass.
/sdlonly

Now, if I start the SDL demo on the N800 and run xprop over SSH and tap on
my window, I get the following output:
http://pastebin.com/mc90995a

I do not know where a packaged version of xprop is available for diablo - I
compiled my binary on the tablet.

Looking at the highlighted line in the pastebin output, the WMCLASS is
parallax (ignore the second parallax in quotes - the first pair of quotes
is the value needed).

Now, the next step is to make a desktop file. I've saved this file as
/usr/share/applications/hildon/parallax2.desktop. Here is the one I've
quickly made for parallax:
http://pastebin.com/m66ba244f

Notice that the argument given to StartupWMClass is the same as the WMClass
output given from xprop.

And, lo and behold, I get my icon shown:
http://i39.tinypic.com/avllrn.png

(Ignore that the window title is shown as unknown - this is something
specific to SDL under Maemo)

Some hints regarding the desktop file:

   - The Name field you will want to name properly as it's the name shown in
   the application menu and it's also shown when you tap and hold on the
   application's entry in the application switcher on the left.
   - If you have no intention of running it from the menu, you can remove
   the Exec field and add NoDisplay=true to the desktop file. As long as the
   desktop file is there, the icon will still show regardless of not having an
   exec field and it will still show even if you choose not to display the
   desktop file entry in the application manager.

Best Regards :),
Faheem


On Sun, Apr 26, 2009 at 5:10 PM, Martin Wegner martinator...@arcor.dewrote:

 Hello,

 thank you for your answer :)

 But I must admit you that I don't understand your recommendation :( Can
 you make a little example, please?

 Thank you so much!

 Greatings, Martin

 Faheem Pervez schrieb:
  You can use xprop to get the WMClass of the application and make a
  desktop file and add the WMClass given to the StartupWMClass argument
  in the desktop file. It's done with SDL apps and some Xlib apps to get
  the icon shown.
 
  BR
 
  On Sat, Apr 25, 2009 at 4:35 PM, Martin Wegner martinator.de
  http://martinator.de@arcor.de http://arcor.de wrote:
 
  Hello,
 
  my Java AWT/Swing programs don't appear in the task/window
  switcher when
  I use openjdk-6-cacao-jre from the Jalimo project. I have the same
  problem when I use Sun Java SE for Embedded 6u10 headful version.
 
  Is there a way to put a program window into the task/window switcher?
 
  Thank you for your help!
 
  Greatings, Martin
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org mailto:maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get a program window into the task/window switcher?

2009-04-27 Thread Thomas Wälti
 And, lo and behold, I get my icon shown:
 http://i39.tinypic.com/avllrn.png

 (Ignore that the window title is shown as unknown - this is something
 specific to SDL under Maemo)

Ah how I hate that bug - makes pygame apps looking so amateurish.
Checking Bugzilla, I believe no one ever reported that issue. Any comments?
Shall I still report it or is it FiF anyway?

Kind regards
-Tom
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get a program window into the task/window switcher?

2009-04-27 Thread Faheem Pervez
Not sure, I can't even bring up a task switcher in the Alpha Fremantle SDK!

For C programs, Mikkov made the following code which works a treat for SDL
stuff:
http://wiki.maemo.org/Game_development#Set_the_window_title

Dunno how you'd get a python equivalent (I built python-xlib and fixed it up
to work in Diablo in hope it could be used to do the same but I could never
see a way to do so...)

Can't hurt reporting it as you'll get an answer as to whether it's fixed
anyway :)

Best Regards,
Faheem

On Mon, Apr 27, 2009 at 4:34 PM, Thomas Wälti twae...@gmail.com wrote:

  And, lo and behold, I get my icon shown:
  http://i39.tinypic.com/avllrn.png
 
  (Ignore that the window title is shown as unknown - this is something
  specific to SDL under Maemo)

 Ah how I hate that bug - makes pygame apps looking so amateurish.
 Checking Bugzilla, I believe no one ever reported that issue. Any comments?
 Shall I still report it or is it FiF anyway?

 Kind regards
 -Tom

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get a program window into the task/window switcher?

2009-04-27 Thread Martin Wegner
Hello Faheem,

thank you so much for your detailed manual :)

I got xprop from here:

deb http://austinche.name/maemo/ bora/

But libxmuu1 is required for the xprop installation, so I got libxmuu1
from here:

deb http://repository.maemo.org/ chinook free non-free

Now I started xprop via SSH and the StartupWMClass is
sun-awt-X11-XFramePeer and I wrote this file:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=SmartHome GUI
Exec=/home/user/run.sh
StartupWMClass=sun-awt-X11-XFramePeer

When I start my application than I have my application in the
tast/window switcher :)

I ask me why a simple desktop file, which is only a shortcut in my eyes,
brings my application into the task/window switcher although I DO NOT
start my applicaton by clicking on the shortcut... I start my
application by hand in the terminal and it is also in the task/window
switcher :D Can you explain this feature, please :) ?

Greatings, Martin



Faheem Pervez schrieb:
 From: *Faheem Pervez* tripp...@gmail.com mailto:tripp...@gmail.com
 Date: Mon, Apr 27, 2009 at 4:00 PM
 Subject: Re: How to get a program window into the task/window switcher?
 To: Martin Wegner martinator.de http://martinator.de@arcor.de
 http://arcor.de


 Hello,

 Here's a SDL example:

 Building and running http://olofson.net/download/parallax-2.tar.gz and
 pressing home only shows me the terminal I started it with:
 http://i42.tinypic.com/124wyub.png

 sdlonly
 For SDL (and SDL only) , you have to add a
 putenv(SDL_VIDEO_X11_WMCLASS=app); because SDL under Maemo seems
 to report the same WMCLASS for every SDL app.
 So I've added putenv(SDL_VIDEO_X11_WMCLASS=parallax); above
 SDL_Init(SDL_INIT_VIDEO); and this forces the WMCLASS of this app to
 be parallax. Other apps usually have a correct WMClass.
 /sdlonly

 Now, if I start the SDL demo on the N800 and run xprop over SSH and
 tap on my window, I get the following output:
 http://pastebin.com/mc90995a

 I do not know where a packaged version of xprop is available for
 diablo - I compiled my binary on the tablet.

 Looking at the highlighted line in the pastebin output, the WMCLASS is
 parallax (ignore the second parallax in quotes - the first pair of
 quotes is the value needed).

 Now, the next step is to make a desktop file. I've saved this file as
 /usr/share/applications/hildon/parallax2.desktop. Here is the one I've
 quickly made for parallax:
 http://pastebin.com/m66ba244f

 Notice that the argument given to StartupWMClass is the same as the
 WMClass output given from xprop.

 And, lo and behold, I get my icon shown:
 http://i39.tinypic.com/avllrn.png

 (Ignore that the window title is shown as unknown - this is something
 specific to SDL under Maemo)

 Some hints regarding the desktop file:

 * The Name field you will want to name properly as it's the name
   shown in the application menu and it's also shown when you tap
   and hold on the application's entry in the application switcher
   on the left.
 * If you have no intention of running it from the menu, you can
   remove the Exec field and add NoDisplay=true to the desktop
   file. As long as the desktop file is there, the icon will still
   show regardless of not having an exec field and it will still
   show even if you choose not to display the desktop file entry in
   the application manager.

 Best Regards :),
 Faheem


 On Sun, Apr 26, 2009 at 5:10 PM, Martin Wegner martinator.de
 http://martinator.de@arcor.de http://arcor.de wrote:

 Hello,

 thank you for your answer :)

 But I must admit you that I don't understand your recommendation
 :( Can
 you make a little example, please?

 Thank you so much!

 Greatings, Martin

 Faheem Pervez schrieb:
  You can use xprop to get the WMClass of the application and make a
  desktop file and add the WMClass given to the StartupWMClass
 argument
  in the desktop file. It's done with SDL apps and some Xlib apps
 to get
  the icon shown.
 
  BR
 
  On Sat, Apr 25, 2009 at 4:35 PM, Martin Wegner martinator.de
 http://martinator.de
  http://martinator.de@arcor.de http://arcor.de
 http://arcor.de wrote:
 
  Hello,
 
  my Java AWT/Swing programs don't appear in the task/window
  switcher when
  I use openjdk-6-cacao-jre from the Jalimo project. I have
 the same
  problem when I use Sun Java SE for Embedded 6u10 headful
 version.
 
  Is there a way to put a program window into the task/window
 switcher?
 
  Thank you for your help!
 
  Greatings, Martin
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
 mailto:maemo-developers@maemo.org
 mailto:maemo-developers@maemo.org
 mailto:maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 



 

Duplicity Backup Available on Diablo

2009-04-27 Thread Kenneth Loafman
Folks,

I've just ported duplicity backup to Maemo Diablo.  You can find it in
the extras-devel repository.  Please try it out and let me know how it
works for you.  All feedback is appreciated.

More information on duplicity may be found at:
http://duplicity.nongnu.org/ - main page
http://duplicity.nongnu.org/CHANGELOG - changelog
http://duplicity.nongnu.org/duplicity.1.html - man page

Duplicity has multiple backends, SSH, FTP, etc., all covered in the
above.  You will need to install ncftp for FTP, openssh for SSH, and so
on.  Right now, the S3 (boto) backend is broken, but I'm working on it.

...Thanks,
...Ken
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


New home for Easy Debian?

2009-04-27 Thread Qole
Hi everyone,

My long-time host, maemobox.org, is being shut down this week.

Is there anyone willing to host my image files? They are large (over 300 MB
each) and they contain the root filesystems of various alternate
distributions, tweaked to run in a chroot.

At this point, garage.maemo.org doesn't allow file uploads of the size I
need (maximum 150MB files there).

If I can't find a host for, at least, my Easy Debian rootfs image, I will
have to remove Easy Debian from the extras repository.

-- 
enthusiast, n. One whose mind is wholly possessed and heated by what
engages it; one who is influenced by a peculiar fervor of mind; an ardent
and imaginative person.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: New home for Easy Debian?

2009-04-27 Thread Frank Banul
garage.maemo.org seems like the appropriate place. Would splitting the
file be a possibility that would allow garage usage (at the expense of
end user convenience)?

Frank

On Mon, Apr 27, 2009 at 12:40 PM, Qole qole.tab...@gmail.com wrote:
 Hi everyone,

 My long-time host, maemobox.org, is being shut down this week.

 Is there anyone willing to host my image files? They are large (over 300 MB
 each) and they contain the root filesystems of various alternate
 distributions, tweaked to run in a chroot.

 At this point, garage.maemo.org doesn't allow file uploads of the size I
 need (maximum 150MB files there).

 If I can't find a host for, at least, my Easy Debian rootfs image, I will
 have to remove Easy Debian from the extras repository.

 --
 enthusiast, n. One whose mind is wholly possessed and heated by what
 engages it; one who is influenced by a peculiar fervor of mind; an ardent
 and imaginative person.

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: New home for Easy Debian?

2009-04-27 Thread Marius Vollmer
ext Qole qole.tab...@gmail.com writes:

 At this point, garage.maemo.org doesn't allow file uploads of the size
 I need (maximum 150MB files there).

You could try asking for an exception.  Yours seems like a worthy cause.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: New home for Easy Debian?

2009-04-27 Thread Ryan Abel
On Apr 27, 2009, at 2:58 PM, Marius Vollmer wrote:

 ext Qole qole.tab...@gmail.com writes:

 At this point, garage.maemo.org doesn't allow file uploads of the  
 size
 I need (maximum 150MB files there).

 You could try asking for an exception.  Yours seems like a worthy  
 cause.


Or just raising the limits. We can always beg hardware from Tero  
later. ;)

--
Ryan Abel
Maemo Community Council member

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: New home for Easy Debian?

2009-04-27 Thread Ferenc Szekely
Hello,

Ryan Abel wrote:
 On Apr 27, 2009, at 2:58 PM, Marius Vollmer wrote:
 
 ext Qole qole.tab...@gmail.com writes:

 At this point, garage.maemo.org doesn't allow file uploads of the  
 size
 I need (maximum 150MB files there).
 You could try asking for an exception.  Yours seems like a worthy  
 cause.
 
 
 Or just raising the limits. We can always beg hardware from Tero  
 later. ;)
 
Guys, the web place of garage projects (ie. the www dir in the version
control's root) is NOT MEANT for debian repositories or 300 megs of
image files. We made exceptions way too many imho by raising the upload
limits, instead of solving the problem and setting up a proper service.
What we need here is a similar infrastructure as extras has: a content
delivery network. There has been a project proposal 2 years ago for VIP
file sharing. The drafts are still somewhere on garage...

It is a pity we did not make it clear enough that the www place is for
simple, static web pages and nothing else.

 --
 Ryan Abel
 Maemo Community Council member
 
Br,
ferenc
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: New home for Easy Debian?

2009-04-27 Thread Anderson Lizardo
On Mon, Apr 27, 2009 at 3:18 PM, Ferenc Szekely fer...@maemo.org wrote:
 Guys, the web place of garage projects (ie. the www dir in the version
 control's root) is NOT MEANT for debian repositories or 300 megs of
 image files. We made exceptions way too many imho by raising the upload
 limits, instead of solving the problem and setting up a proper service.
 What we need here is a similar infrastructure as extras has: a content
 delivery network. There has been a project proposal 2 years ago for VIP
 file sharing. The drafts are still somewhere on garage...

Looks to me like something like Launchpad's PPA (see e.g.:
https://launchpad.net/~lizardo/+archive/boost1.38-jaunty)

It would be very interesting to have a similar service in garage.

Regards,
-- 
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: New home for Easy Debian?

2009-04-27 Thread Attila Csipa
On Monday 27 April 2009 21:18:19 Ferenc Szekely wrote:
 Guys, the web place of garage projects (ie. the www dir in the version
 control's root) is NOT MEANT for debian repositories or 300 megs of
 image files. We made exceptions way too many imho by raising the upload
 limits, instead of solving the problem and setting up a proper service.
 What we need here is a similar infrastructure as extras has: a content
 delivery network. There has been a project proposal 2 years ago for VIP
 file sharing. The drafts are still somewhere on garage...

Sounds like torrent land to me. Maybe a tracker would be enough + a few kind 
souls with dedicated seeds - and then garage gets only the .torrent files. If 
this sounds silly or 'been there, done that', chalk it up to me being new 
here.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: New home for Easy Debian?

2009-04-27 Thread Sebastian 'CrashandDie' Lauwers
On Mon, Apr 27, 2009 at 11:05 PM, Attila Csipa ma...@csipa.in.rs wrote:

 Sounds like torrent land to me. Maybe a tracker would be enough + a few kind
 souls with dedicated seeds - and then garage gets only the .torrent files.
 If this sounds silly or 'been there, done that', chalk it up to me being new
 here.

Sounds like time to dust off apt-torrent.

-- 
question = ( to ) ? be : ! be;
  -- Wm. Shakespeare
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: New home for Easy Debian?

2009-04-27 Thread Qole
Thank you, Graham, and those who championed the raising of garage.maemo.org's
file size limits. I still think maemo.org needs to allow big Maemo and
tablet related downloads, but we've got some more time to discuss this now.

I have managed to get a stay of execution for a year, by purchasing an
unlimited bandwidth hosting account from dreamhost.com for $9.24 for a year.

I will update my Easy Debian package to point to the new server this week.

You can go visit my new site at qole.org and feel free to download away!

On Mon, Apr 27, 2009 at 2:31 PM, Graham Cobb
g+...@cobb.uk.netg%2b...@cobb.uk.net
 wrote:

 On Monday 27 April 2009 18:40:26 you wrote:
  Hi everyone,
 
  My long-time host, maemobox.org, is being shut down this week.
 
  Is there anyone willing to host my image files? They are large (over 300
 MB
  each) and they contain the root filesystems of various alternate
  distributions, tweaked to run in a chroot.

 Of course, the best idea is a Maemo server but if you need somewhere for a
 limited time, I might be able to host them on my personal Internet server.
  I
 have plenty of disk space but bandwidth is limited on my hosting package --
 any idea how much bandwidth you use each month?

 Graham




-- 
enthusiast, n. One whose mind is wholly possessed and heated by what
engages it; one who is influenced by a peculiar fervor of mind; an ardent
and imaginative person.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers