Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Adding different media to a stack
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Adding different media to a stack
Perseus English 8 matttbe [Read]
17 September 2012 à 18:20

Perseus, Thursday 30 August 2012 à 18:18


Subscription date : 17 August 2012
Messages : 10
[Glx-Dock 3.0.2 / Ubuntu-12.04.1]

Hello all,

I added my first stack in the left upper dock. First shot was to mark some text in a web page and drag it on the stack icon. It appeared on the stack, though tiny and only for 2 seconds ... but no worry, just a test and it worked.

Now, what I want to do with a stack and what doesn't work: I have a directory/folder filled with symbolic links to a thematic set of PDFs, MPEG4s and FLVs which I want to have at hands for frequent use. Problem: I tried to drag on after the other link onto the stack icon, the "+" sign appeard, I released the mous button - but then: Nothing appears on the stack, no symbol/icon, nothing!

I read, I may just drag and drop "anything" on that dock and it will be collected within. So, what am I doing wrong?

Thanks for enlightenment

Perseus

matttbe, Thursday 30 August 2012 à 19:00


Subscription date : 24 January 2009
Messages : 12573
First shot was to mark some text in a web page and drag it on the stack icon. It appeared on the stack, though tiny and only for 2 seconds ... but no worry, just a test and it worked.
Yes, this bug is fixed on the development version (feel free to use our 'Weekly ppa')

Now, what I want to do with a stack and what doesn't work: I have a directory/folder filled with symbolic links to a thematic set of PDFs, MPEG4s and FLVs which I want to have at hands for frequent use. Problem: I tried to drag on after the other link onto the stack icon, the "+" sign appeard, I released the mous button - but then: Nothing appears on the stack, no symbol/icon, nothing!
Strange, I don't have this bug
The dock is maybe locked (right click on the dock / Cairo-Dock / Lock) but it shouldn't be a problem (except if you launch it with the locked option). It's maybe due to the symbolic links but I don't understand why it's a problem. Can you try with other files?

Can you launch the dock with this command and give us the output messages when you drop a file over the applet?
cairo-dock -l debug --colors | sed -n "/stack\// {N;p;}"


PS: you can also drop a directory into the dock to use the 'Folder' applet in order to "monitor" this directory

Guest, Thursday 30 August 2012 à 19:52

matttbe :
First shot was to mark some text in a web page and drag it on the stack icon. It appeared on the stack, though tiny and only for 2 seconds ... but no worry, just a test and it worked.
Yes, this bug is fixed on the development version (feel free to use our 'Weekly ppa') ;)


I read about it, but this is my production system. I don't risk *anything* bad, ugly and/or avoidable

matttbe :
Now, what I want to do with a stack and what doesn't work: I have a directory/folder filled with symbolic links to a thematic set of PDFs, MPEG4s and FLVs which I want to have at hands for frequent use. Problem: I tried to drag on after the other link onto the stack icon, the "+" sign appeard, I released the mous button - but then: Nothing appears on the stack, no symbol/icon, nothing!
Strange, I don't have this bug
The dock is maybe locked (right click on the dock / Cairo-Dock / Lock) but it shouldn't be a problem (except if you launch it with the locked option). It's maybe due to the symbolic links but I don't understand why it's a problem. Can you try with other files?


The dock is not locked, I didn't use that feature so far. I found out that it works fine with regular files, ie. throwing a complete folder on the dock or the stack icon and certainly also different file types. It seems to be the links which disturb the dock. Maybe the code needs to allow symlinks, also?!

BTW, I would like to know whether and how the dropped files on the stack are handled: Are these copies or links? Does anything change in the file system? Is there a risk of data loss?

matttbe :
Can you launch the dock with this command and give us the output messages when you drop a file over the applet?
cairo-dock -l debug --colors | sed -n "/stack\// {N;p;}"


Here's the output:

cairo-dock -l debug --colors | sed -n "/stack\// {N;p;}"
cairo_dock_instanciate_module (/home/frank/.config/cairo-dock/current_theme/plug-ins/stack/stack.conf)
cairo_dock_create_surface_from_image_simple: assertion `cImageFile != NULL' failed
message : (/build/buildd/cairo-dock-plug-ins-3.0.0.1/stack/src/applet-init.c:init:48)
init (/home/frank/.config/cairo-dock/current_theme/plug-ins/stack/stack.conf)
debug : (/build/buildd/cairo-dock-plug-ins-3.0.0.1/stack/src/applet-stack.c:cd_stack_check_local:72)
Stack : reperoire local : /home/frank/.config/cairo-dock/stack-1
debug : (/build/buildd/cairo-dock-plug-ins-3.0.0.1/stack/src/applet-load-icons.c:cd_stack_build_one_icon:103)
un fichier -> TODO , text-plain
debug : (/build/buildd/cairo-dock-plug-ins-3.0.0.1/stack/src/applet-load-icons.c:cd_stack_build_one_icon:103)
un fichier -> (null) , (null)
debug : (/build/buildd/cairo-dock-plug-ins-3.0.0.1/stack/src/applet-stack.c:_cd_stack_create_new_item:319)
Stack: got 'trash:///Kai.Kurosawa-Add.Some.More.mp4'


That last MPEG4 file was dragged from the trash ... it behaves like expected as far as the dropping is concerned. No error message nor warning but the stack widget remains empty.

For the very next test I used a different symlink which residess not in the trash folder but in a regular directory:

debug : (/build/buildd/cairo-dock-plug-ins-3.0.0.1/stack/src/applet-stack.c:_cd_stack_create_new_item:319)
Stack: got 'file:///home/frank/genre/html/Musik/HermannMichael-Dirigent/Nachruf-Hermann.Michael.mp3'
debug : (/build/buildd/cairo-dock-plug-ins-3.0.0.1/stack/src/applet-load-icons.c:cd_stack_build_one_icon:103)
un fichier -> Nachruf-Hermann.Michael.mp3 , audio-mpeg
PS: you can also drop a directory into the dock to use the 'Folder' applet in order to "monitor" this directory ;)[/quote]


It works as expected, all files in place - so we have a special case when links (files, dirs?) from the trash are involved.

Thanks for a nice pointer which helped me to narrow and understand the problem!

matttbe, Friday 31 August 2012 à 11:28


Subscription date : 24 January 2009
Messages : 12573
It seems to be the links which disturb the dock. Maybe the code needs to allow symlinks, also?!
This is strange for two reasons.
  • I don't have this bug even if I use broken symlinks
  • And by default, symlinks are seen are a file except if you add the instruction to detect if it's a regular file or not.


BTW, I would like to know whether and how the dropped files on the stack are handled: Are these copies or links? Does anything change in the file system? Is there a risk of data loss?
They are linked: a launcher is created for each file/text and if you modify the launcher, you only modify this launcher.

That last MPEG4 file was dragged from the trash ... it behaves like expected as far as the dropping is concerned. No error message nor warning but the stack widget remains empty.
Yes, maybe we should add a warning message. (@fabounet: what do you think about that?)

so we have a special case when links (files, dirs?) from the trash are involved.
Yes and I confirm that Stack only supports file:// and http:// URI. Of course, we can add the support for these files located in the trash but I don't understand why you want to add these files in the stack applet?

fabounet, Thursday 06 September 2012 à 17:52


Subscription date : 30 November 2007
Messages : 17118

BTW, I would like to know whether and how the dropped files on the stack are handled: Are these copies or links? Does anything change in the file system? Is there a risk of data loss?

no data loss risk at all

links are common files, there is no specific treatment required

I certainly don't see the point to handle files in the trash
yes we could add a message in case something fails.

Perseus, Thursday 06 September 2012 à 18:48


Subscription date : 17 August 2012
Messages : 10
fabounet :
I certainly don't see the point to handle files in the trash :)


Completely agreed

I updated my system and put a hand full of icons (links to real files)
from my old desktop into the trash, while I built my new cairo desktop.
Then, when I discovered the stack widget, I just wanted to move these
links easily from the trash bin to a stack.

No worries, not necessary ... just a question out of that particular
situation

matttbe, Sunday 09 September 2012 à 12:23


Subscription date : 24 January 2009
Messages : 12573
Now all extensions (file://, trash://, etc.) are supported (BZR rev 2522)

fabounet, Tuesday 11 September 2012 à 17:08


Subscription date : 30 November 2007
Messages : 17118
I'm not sure how it is supposed to fix the problem, we need a path to feed g_path_get_basename(), will g_uri_unescape_string() transform the URI into a valid path ?

matttbe, Monday 17 September 2012 à 18:20


Subscription date : 24 January 2009
Messages : 12573
The problem is that we only want a readable base name. This is why before, we used 'g_filename_from_uri' just to replace all 'unreserved' chars (e.g. '%20' by ' ', etc.) and then get the base name with g_path_get_basename. But it seems 'g_filename_from_uri' only works with files and this is why it's better to use g_uri_unescape_string (which is designed for this problem)

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Adding different media to a stack
Perseus English 8 matttbe [Read]
17 September 2012 à 18:20


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Adding different media to a stack Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.