AnotherFolderView Screenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

6
Score 63.3%
Description:

This screenlet is for these, who:
- want quick access to files from desktop, but wanna see wallpaper too
- have 3D hardware working properly
- don't know what to do with free memory
- like animations
- do not afraid of troubleshooting

On this video you can see it in action: http://dl.dropbox.com/u/4466860/afv.ogv

Requires:
python-gtkglext or python-gtkglext1
python-opengl
python-numpy or python-numeric

Run it from terminal:
python ~/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py


Note:

To move screenlet, hold CTRL key and drag screenelt when minimized.

Screenlet depends on some C code, hope it's compiled well for both x86 and x86_64 architectures. Works best on Nvidia graphics cards with proprietary drivers.

On some icon themes it may look bad.

If you have problems with VLC player, try to use OpenGL video output in player settings.
Last changelog:

9 years ago

0.2.6
- better updates icons of the folder files (only the ones that was changed). This should fix some problems, mainly for home directory
- source code refactoring

0.2.5
- recoded screenlet's expanding, now it use another separate window. It should solve positioning issues on some computers and it allows to implement better drag & drop support
- copy/move files by drag & drop (now only simple implementation, no questions like "really overwrite file?" or so)

0.2.4
- using system files thumbnails when available
- fixed tooltip's textures without GL_ARB_texture_non_power_of_two extension
- shader effects now works on ATI cards

0.2.3
- fixed problem with changing folder in settings introduced in version 0.2.2

0.2.2
- fixed non-power of 2 texture size for image file icons when GL_ARB_texture_non_power_of_two extension isn't available
- support for .gif image files
- added option for text color
- new 'Square' shader effect for image tooltips
- update on folder content change

0.2.1
- fixed Segmentation fault on x86_64 architecture caused by ctypes library

0.2
- reporting missing packages by message dialog windows
- random curve option for expanding animation
- better icons handling of image files
- improved performance (redrawing required area by glScissor function)
- c library compiled for x86_64 architecture
- tooltips for images - shows image preview and some info

0.1.4
- works better on systems on which it wasn't visible before, but maybe not on all (any feedback is welcome, especially ATI cards)

0.1.3
- works better with more icon themes

0.1.2
- checking for GL_EXT_bgra extension
- better textures handling, more output information to terminal

0.1.1
- attempt to fix problem with non power of 2 textures (not final solution)
- checking accumulation buffer size before using motion blur

0.1
- first version
- added source code of C module

dwsalo

9 years ago

I tested Ubuntu default logo on boot PC with and without driver installed.

Report

C

dencer

9 years ago

yeah I noticed this several times, I must improve textures management. Each instance have it's own opengl context, but binding to this context is not performed well and then they can use or delete wrong textures.

Report

themis

9 years ago

I really love this App, but unfortunately it's not working on my system (Ubuntu 10.04/32, latest kernel). Although I have already installed all dependencies I can't even start the screenlet.
Any ideas?

Report

C

dencer

9 years ago

run it from terminal:
python ~/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py

and send me the output and info about your graphic card and drivers if you know that

Report

Anduu

9 years ago

That was quick work getting it fixed...good job!

Cannot wait to see where you go with this.

A couple things on my wish list:

1:Better GTK theme support.When I switch to a dark theme and background the font is unreadable as it remains dark.

2:Possibly have sub folders expand as well?

3:Thumbnails...Image files are displayed as a blank box-(Could the thumbnail be displayed here rather than having to hover to see the image?)
Also while hovering the image displays fine however there is a large area of "noise' around the image.

Anyway...the Screenlet looks very promising.Keep up the good work!

Report

Anduu

9 years ago

Oops one more thing...

When files/folders are added i have to restart the screenlet to refresh the vies.

Report

C

dencer

9 years ago

My support can vary from day to day :P

1. I added text color option, now it should be fine
2. maybe later, this would need more work and now I must clear source code
3. icons of image files shouldn't be blank even in version 0.2.
If you don't have similar result as on video in screenlet's description, then it must be a problem and output from terminal would help me
4. yeah I known that, it wasn't priority for me, but now it's implemented as it wasn't much of work (thanx for Whise and his FolderView Screenlet)

And I must add another item to your list :), it's useless when there is many files in the folder

Report

Anduu

9 years ago

Nice...its all working well now :)
Thumbnails work now too!

Here is an example of the "noise" I see on mouseover of an image. http://members.shaw.ca/anduu/pics/screenshot_001.jpg

Report

C

dencer

9 years ago

try this beta http://dl.dropbox.com/u/4466860/AnotherFolderView_0.2.4.tar.gz

Report

Anduu

9 years ago

PERFECT!

You are too kind....thanks a bunch :)

Report

Anduu

9 years ago

anduu@StormChaser:~$ python /home/anduu/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py
x86_64
x86_64
ok
py call get_gl_config
parsing arguments
call GTK_WIDGET
call gl_config
call glXChooseFBConfig
iNumFBConfigs: 12
found pGlConfig: 153
22876736
py finished get_gl_config
Segmentation fault

My info:
python-gtkglext1 version 1.1.0-4
python-numpy version 1:1.3.0-3build1
python-opengl version 3.0.0-0ubuntu1

Also of note I am running the Xorg-Edgers versions of Xorg and ATI Radeon drivers.

Let me know if you need any more info.

Screenlet looks great...would love to get it up and running =]

Report

dwsalo

9 years ago

Looks like we have same log. Strange, it isn't work for me and works for you...

Report

Anduu

9 years ago

No it doesn't work for me.

Report

C

dencer

9 years ago

you both have x86_64 architecture and I already saw this segmentation fault error, but my testing possibilities are limited for x86_64 architecture. But in a next days I'll look at this

Report

dwsalo

9 years ago

Looking forward to see news from you

Report

C

dencer

9 years ago

try version 0.2.3, it should be finally working for you. And what graphic card and drivers do you have ?

Report

dwsalo

9 years ago

Wow, it's really great. (It works now :) )

I have Radeon HD 4850 graphic card and use Proprietary FGLRX driver for ATI/AMD graphic cards (Proposed for installation by OS).

Thanks a lot.

Report

C

dencer

9 years ago

check the new version and let me know

Report

dwsalo

9 years ago

Deosn't work for me ((

This is new output

progname=AnotherFolderViewScreenlet.py; RGBA=on
x86_64
x86_64
ok
py call get_gl_config
parsing arguments
call GTK_WIDGET
call gl_config
call glXChooseFBConfig
iNumFBConfigs: 12
found pGlConfig: 99
<gtk.gdk.GLConfigImplX11 object at 0x328e870 (GdkGLConfigImplX11 at 0x27555e0)>
py finished get_gl_config
CachingBackend: завантаження інтерфейсів з кешу
Found a running session of AnotherFolderView, adding new instance by service.
Error in screenlets.services.get_service_by_name: org.freedesktop.DBus.Error.ServiceUnknown: The name org.screenlets.AnotherFolderView was not provided by any .service files
Screenlet has already been added to /tmp/screenlets/screenlets.salo.running
Loading instances in: /home/salo/.config/Screenlets/AnotherFolderView/default/
No instance(s) found in session-path, creating new one.
/home/salo/.config/Screenlets/Another FolderView /default/AnotherFolderView1
LOAD NEW THEME: default
FOUND: /home/salo/.screenlets/AnotherFolderView/themes/default
theme.conf found! Loading option-overrides.
theme.conf loaded:
Name: default
Author: Marcel Dancak
Version: 0.2
Info: Default theme
py call get_gl_config
parsing arguments
call GTK_WIDGET
call gl_config
call glXChooseFBConfig
iNumFBConfigs: 12
found pGlConfig: 99
<gtk.gdk.GLConfigImplX11 object at 0x338f050 (GdkGLConfigImplX11 at 0x345fd80)>
py finished get_gl_config
OPEN GL CONFIGURE
OpenGl version: 1.5 Mesa 7.7.1
OpenGl Extensions:
GL_EXT_compiled_vertex_array GL_EXT_texture_env_add GL_ARB_depth_texture GL_ARB_depth_clamp GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_provoking_vertex GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_MESAX_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_array_bgra GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_convolution GL_EXT_copy_texture GL_EXT_draw_range_elements GL_EXT_framebuffer_object GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_histogram GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_APPLE_packed_pixels GL_ATI_blend_equation_separate GL_ATI_texture_env_combine3 GL_ATI_texture_mirror_once GL_ATI_separate_stencil GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_MESA_window_pos GL_NV_blend_square GL_NV_depth_clamp GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_NV_texgen_reflection GL_NV_vertex_program GL_OES_read_format GL_SGI_color_matrix GL_SGI_color_table GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays
ALPHA SIZE 8

ACUMULATION BUFER SIZE 0 0 0 0

OPEN GL CONFIGURE
/home/salo/.icons/Ubuntu-X-Studio/places/user-home.png
1.0
Traceback (most recent call last):
File "/home/salo/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 1240, in <module>
screenlets.session.create_session(AnotherFolderViewScreenlet)
File "/usr/lib/pymodules/python2.6/screenlets/session.py", line 472, in create_session
session.start()
File "/usr/lib/pymodules/python2.6/screenlets/session.py", line 254, in start
sl.finish_loading()
File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1247, in finish_loading
self.on_init()
File "/home/salo/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 686, in on_init
self.baseIcon = self.createIconWidget(self.baseFolder, os.path.basename(self.baseFolder))
File "/home/salo/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 1060, in createIconWidget
texData = self.createIocnTexture(fileIcon, ICON_IMAGE_SIZE*self.scale)
File "/home/salo/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 1083, in createIocnTexture
iconTextureData = textureFromImage(file, size)
File "/home/salo/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 277, in textureFromImage
return createTexture(path, size, center)
File "/home/salo/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 160, in createTexture
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, originalSize, originalSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, chr(0)*(4*originalSize*originalSize))
File "/usr/lib/pymodules/python2.6/OpenGL/wrapper.py", line 1282, in __call__
return self._finalCall( *args, **named )
File "/usr/lib/pymodules/python2.6/OpenGL/wrapper.py", line 681, in wrapperCall
raise err
OpenGL.error.GLError: GLError(
err = 1281,
description = 'invalid value',
baseOperation = glTexImage2D,
pyArgs = (
GL_TEXTURE_2D,
0,
GL_RGBA,
48,
48,
0,
GL_RGBA,
GL_UNSIGNED_BYTE,
'\x00\x00\x00\x00\x00\x00\x00\x00\x00...,
),
cArgs = (
GL_TEXTURE_2D,
0,
GL_RGBA,
48,
48,
0,
GL_RGBA,
GL_UNSIGNED_BYTE,
'\x00\x00\x00\x00\x00\x00\x00\x00\x00...,
),
cArguments = (
GL_TEXTURE_2D,
0,
GL_RGBA,
48,
48,
0,
GL_RGBA,
GL_UNSIGNED_BYTE,
c_void_p(59899380),
)
)

Report

dwsalo

9 years ago

I installed this screenlet and all required packages. But after start I didn't see it. What should I do in additional to get it screenlet on desktop.

Thanks in advance.

Report

Anduu

9 years ago

Try running it from a terminal to see if it is spitting out any errors:

python /home/username/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py

Report

dwsalo

9 years ago

progname=AnotherFolderViewScreenlet.py; RGBA=on
x86_64
x86_64
ok
py call get_gl_config
parsing arguments
call GTK_WIDGET
call gl_config
call glXChooseFBConfig
iNumFBConfigs: 12
found pGlConfig: 99
40314336
py finished get_gl_config
Segmentation fault

Report

Whise

10 years ago

nice, could you tell me the secrete of wraping the pango text verticaly?

Report

C

dencer

10 years ago

it's secret only in python :) You must set pango layout height, but python bindings doesn't already have set_height method (maybe last version of pygtk has it, but how many people use it). Anyway, I was needing to write transparency support to gtkglext in C, so I added even this feature.

If you want use it, it's function in utils module:
import utils
utils.pangoLayoutSetHeight(pangoLayout, height)
But as it's a little dirty solution, it's needed to compile for different python versions and systems. I compiled it only for 32-bit systems and python versions 2.5 and 2.6.

Report

Whise

10 years ago

thank you for the response , ill take a look and see if i can adapt it in my screenlet

Report

9 years ago

0.2.6
- better updates icons of the folder files (only the ones that was changed). This should fix some problems, mainly for home directory
- source code refactoring

0.2.5
- recoded screenlet's expanding, now it use another separate window. It should solve positioning issues on some computers and it allows to implement better drag & drop support
- copy/move files by drag & drop (now only simple implementation, no questions like "really overwrite file?" or so)

0.2.4
- using system files thumbnails when available
- fixed tooltip's textures without GL_ARB_texture_non_power_of_two extension
- shader effects now works on ATI cards

0.2.3
- fixed problem with changing folder in settings introduced in version 0.2.2

0.2.2
- fixed non-power of 2 texture size for image file icons when GL_ARB_texture_non_power_of_two extension isn't available
- support for .gif image files
- added option for text color
- new 'Square' shader effect for image tooltips
- update on folder content change

0.2.1
- fixed Segmentation fault on x86_64 architecture caused by ctypes library

0.2
- reporting missing packages by message dialog windows
- random curve option for expanding animation
- better icons handling of image files
- improved performance (redrawing required area by glScissor function)
- c library compiled for x86_64 architecture
- tooltips for images - shows image preview and some info

0.1.4
- works better on systems on which it wasn't visible before, but maybe not on all (any feedback is welcome, especially ATI cards)

0.1.3
- works better with more icon themes

0.1.2
- checking for GL_EXT_bgra extension
- better textures handling, more output information to terminal

0.1.1
- attempt to fix problem with non power of 2 textures (not final solution)
- checking accumulation buffer size before using motion blur

0.1
- first version
- added source code of C module

12345678910
2
product-maker Ahmose Jul 21 2011 9 excellent
product-maker kamigr Mar 07 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
legion1978
Feb 05 2011
themis
Jun 20 2010
Kreisverkehr
Jun 20 2010
Anduu
Jun 17 2010
Whise
Oct 19 2009
Spox5
Sep 12 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2.6
updated Jul 14 2010
added Sep 11 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2