Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

dmenu 0.2

Only for posting new Dingux software releases.

Moderator: Moderators

dmenu 0.2

Postby rookie1 on Mon Jul 20, 2009 3:32 pm

dmenu 0.1 should work with booboo's latest rootfs without recompile. However I've made some minor changes to go inline with his rootfs. Hence dmenu 0.2. Enjoy. :)

Changes in 0.2

- Dynamically link against libconfuse since it's provided by the rootfs. dmenu binary is now smaller :)
- Remove the mechanism to restart dmenu after the executed program has finished. This is not required anymore if you are using init to respawn dmenu.

For the above to work, you need to create a script file called /usr/local/sbin/main with the following content,

Code: Select all
#!/bin/sh
export SDL_NOMOUSE=1
cd /usr/local/dmenu
./dmenu


Note that you need to change /usr/local/dmenu in this script to the directory where you have dmenu installed.

<Edit>
I've decided to make the setup easier for windows users. Please download dmenu-0.2a.zip instead. It has all the directory structure in place (/local/dmenu and /local/sbin/main). Just directly unzip this file to your SD card and it should work automatically. Enjoy :)
<Warning: it might overwrite your existing /local/sbin/main. so take precaution if you want to keep your existing /local/sbin/main>
Attachments
dmenu-0.2a.zip
(410.5 KiB) Downloaded 299 times
Last edited by rookie1 on Mon Jul 20, 2009 4:23 pm, edited 1 time in total.
rookie1
 
Posts: 29
Joined: Sun Mar 15, 2009 10:00 am

Re: dmenu 0.2

Postby DJDavemortis on Mon Jul 20, 2009 4:04 pm

@rookie1: thanks for the update!

Just tried dmenu, but i get following error message:
cannot run ´usr/local/sbin/main´: no such file or directory

I edited "main" in notepad, maybe that's the problem?
DJDavemortis
 
Posts: 13
Joined: Wed Jul 15, 2009 11:52 am

Re: dmenu 0.2

Postby zear on Mon Jul 20, 2009 4:08 pm

/usr/local symlinks to /boot/local, which is your fat partition.
You need to create a /local direcotry on top of your fat partition for it to work.

Also, notepad isn't compatibile with unix endline characters, and can break every configure file. It shouldn't be used for editing any linux config files.
I have no idea what other text editor should be used instead, i don't use windows :P
zear
 
Posts: 98
Joined: Thu Jun 11, 2009 8:34 pm

Re: dmenu 0.2

Postby ezelkow1 on Mon Jul 20, 2009 4:16 pm

I try to use notepad++ when on windows, seems to handle the formatting better and also does programming language recognition
ezelkow1
 
Posts: 84
Joined: Tue Apr 28, 2009 11:58 pm

Re: dmenu 0.2

Postby Haas on Mon Jul 20, 2009 4:40 pm

I wanted to ask how to make the script, but then i refreshed the thread, awesome! I got it working!!!
Haas
Moderator
 
Posts: 108
Joined: Thu Jul 02, 2009 7:18 pm

Re: dmenu 0.2

Postby quadomatic on Mon Jul 20, 2009 6:02 pm

Thanks rookie, this works great, and is incredibly easy to set up.
User avatar
quadomatic
 
Posts: 69
Joined: Thu May 14, 2009 11:06 pm

Re: dmenu 0.2

Postby booboo on Mon Jul 20, 2009 8:25 pm

Notice that we are forcing the shell executable stuck in memory JUST to set the SDL_NOMOUSE environment variable.

I will patch SDL in the toolchain/rootfs to set SDL_NOMOUSE=1 by default. Please keep an eye on the next release and when it's used widespread please consider releasing a Dmenu that places the true executable in local/sbin/main instead of a shell script.
booboo
 
Posts: 8
Joined: Mon Apr 20, 2009 9:49 am

Re: dmenu 0.2

Postby Mistabeen on Tue Jul 21, 2009 12:45 am

Is the wallpaper limited by a certain amount of colors?
Every image i try looks like it has lost colorinformation. A bit like when you compress a jpg to a 256color gif.
Image
Mistabeen
 
Posts: 9
Joined: Wed Jul 01, 2009 3:50 pm

Re: dmenu 0.2

Postby rookie1 on Tue Jul 21, 2009 7:32 am

The color banding is due to SDL dithering from 24 bit (the PNG file is 24 bit) to 16 bit (Dingoo screen is at 16 bit). Unfortunately I haven't been able to find a way to save a 16 bit PNG image. However, if your wallpaper does not use many colors, you can save it as a 256 color PNG image in your image editing program. It should look much better than what SDL is doing. You can check out the wallp.png I have included in dmenu 0.2. It's a 256 color PNG and looks better than what comes in dmenu 0.1.
rookie1
 
Posts: 29
Joined: Sun Mar 15, 2009 10:00 am

Re: dmenu 0.2

Postby batman52 on Wed Jul 22, 2009 2:20 pm

I was wondering whether is it possible to make dmenu able to launch application in background.

For instance, I'd like to be able to launch a console-based music player in background, while running a framebuffer-based app (like an ebook reader) just like is possible with the original firmware.
batman52
 
Posts: 47
Joined: Wed Jun 10, 2009 8:48 pm

Next

Return to Dingux Releases

Who is online

Users browsing this forum: No registered users and 0 guests