Wrong directory added as share

Bug #1041546 reported by Jonas H
82
This bug affects 16 people
Affects Status Importance Assigned to Milestone
LinuxDC++
Invalid
High
Unassigned
gtk+3.0 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

- Add the directory /user/foo to the list of shares in the Preferences/Sharing dialog
- /user gets added instead

(/user is my $HOME)

Version 1.1.0, Core 0.75, Arch Linux

Revision history for this message
Steven Sheehy (steven-sheehy) wrote :

Are you saying that when you open the select folder dialog and migrate to /user and select the foo folder so that it's highlighted (but not navigating into it), that it ends up adding /user to the share? Normally what I do is migrate to be inside the folder (e.g. /user/foo) I want to add then choose Open. However, I can see how making the distinction between being in /user with no subfolders selected should add /user but being in /user and highlighting foo should add /user/share.

Changed in linuxdcpp:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Jonas H (jonash) wrote :

No I'm in /user/foo or /user/foo/bar/spam/eggs and it add /user anyway.

Revision history for this message
Jonas H (jonash) wrote :

Video of what I'm talking about

Revision history for this message
Steven Sheehy (steven-sheehy) wrote :

I definitely don't see that issue on my machine. What version of GTK+? I'm using 2.24.8. The only way this could happen is if there's a bug in GTK+ or the path you are selecting may have some difficulty converting it to UTF-8 (non-ASCII chars, for example).

Revision history for this message
Jonas H (jonash) wrote :

2.24.11 and the path doesn't have ASCII chars. May indeed be an upstream bug

Revision history for this message
freddie (fredda) wrote :
Revision history for this message
Daniel (danip) wrote :

Here is a little workaround for those who haven't it figured out already:
1. close linuxdcpp
2. open the file /home/user/.dc++/DCPlusPlus.xml and enter manualy your shared folders at the bottom of the file. It should look like this:
 </Settings>
 <Share>
  <Directory Virtual="sharename">/path/to/the/share/</Directory>
 </Share>
</DCPlusPlus>
3. !!!change the permission of the file to read only (f.e. by right-clicking the file -> properties -> permissions)!!!
4. start linuxdcpp - that's it

You may notice that linuxdcpp changes the permissions after it has started...so if you want to add some folders again you may have to do the same steps as above ;-)

Revision history for this message
Vassili Platonov (vassilip) wrote :

It seems that the matter in libgtk2.0-0 (2.24.13). Downgrade to =<libgtk2.0-0 (2.24.09) or using gtk3-clients solves this problem.
Eiskaltdcpp-gtk doesn't work, but eiskaltdcpp-gtk3 works fine.

Ubuntu 12.10_64:
~$ dpkg -l libgtk2.0-0 libgtk-3-0
...
+++-==============-============-============-=================================
ii libgtk-3-0:amd 3.6.0-0ubunt amd64 GTK+ graphical user interface lib
ii libgtk2.0-0:am 2.24.13-0ubu amd64 GTK+ graphical user interface lib

Revision history for this message
Vassili Platonov (vassilip) wrote :

Some people report that this bug doesn't confirmed on Ubuntu raring i386 with libgtk2.0-0 (2.24.13-0ubuntu2):
http://forum.ubuntu.ru/index.php?topic=204754.0 (in Russian)

Revision history for this message
Varun Yellina (varunyellina) wrote :

I'm running Linux Mint 14 Cinnamon and i'm experiencing the same issue. I'm currently using the xml file to add shares.

no longer affects: ubuntu
Revision history for this message
Thomas Oster (thommy-oster) wrote :

I can confirm the bug. I am running current ArchLinux (KDE) and tried both, linuxdcpp stable and current bzr.

Also when I try to download a file to any location, it always gets downloaded to $HOME.

Revision history for this message
Thomas Oster (thommy-oster) wrote :

gtk2-version: 2.24.14-1 (64 and 32 bit installed)
In the ArchLinux forum, it seems confirmed, that it works with gtk2 <= 2.24.9.

Revision history for this message
Thomas Oster (thommy-oster) wrote :

I can confirm it works again with gtk2-2.24.9 ... so we maybe file a bug against gtk2? Can any of the dc++ developers confirm that the bug is in gtk2 and not it's usage?

Revision history for this message
Steven Sheehy (steven-sheehy) wrote :

Bug is confirmed to be a duplicate of GTK+ bug 691040. Nothing to fix in LinuxDC++. Just have to either wait for a GTK+ fix or upgrade to GTK+ 3.x.

https://bugzilla.gnome.org/show_bug.cgi?id=691040

Revision history for this message
Steven Sheehy (steven-sheehy) wrote :

And by upgrade I mean the code, not user's libraries.

Changed in linuxdcpp:
importance: Low → Medium
tags: added: filename preferences share
Changed in gtk+3.0 (Ubuntu):
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+3.0 - 3.8.2-0ubuntu1

---------------
gtk+3.0 (3.8.2-0ubuntu1) saucy; urgency=low

  * New version update:
    - includes fix for wayland backend segfault (lp: #1113424)
    - don't use tick mark instead of apostrophe (lp: #896986)
    - we now support touch friendly popups on entries and text views
      in place of context menus, on touch devices
    - The print dialog now shows printers that are discovered
      using avahi (lp: #1082519)
    - File chooser dialog doesn't provide network access (lp: #304345)
    - selection is reported incorrectly in file chooser button (lp: #1041546)
  * debian/libgtk-3-0.symbols:
    - new version update
  * debian/patches/git_color_annotation_fix.patch,
    debian/patches/git_cssimage_load_when_needed.patch,
    debian/patches/git_dont_duplicate_bookmark.patch:
    - dropped, those fixes are in the new version
  * debian/patches/102_add_wayland_symbols.patch:
    - updated for new symbols

gtk+3.0 (3.7.12-1) experimental; urgency=low

  [ Sjoerd Simons ]
  * debian/patches/80_Fix-DND-with-frame-sync.patch:
    + Added. Temporary fix for DND when using mutter with the frame sync
    protocol (from upstream git, bgo#694217).

  [ Emilio Pozuelo Monfort ]
  * New upstream release.
    + debian/patches/*:
      - Refreshed.
    + debian/patches/80_Fix-DND-with-frame-sync.patch:
      - Removed, included upstream.
    + debian/libgtk-3-0.symbols:
      - Updated for new symbols.

gtk+3.0 (3.7.10-1) experimental; urgency=low

  * New upstream release.
    + debian/control.in:
      - Update build dependencies.
    + debian/patches:
      - Refreshed.
    + debian/libgtk-3-0.symbols:
      - Updated for the new symbols.
    + debian/gtk-3-examples.install:
      - Stop installing gtk3-demo files, no longer needed.
    + debian/patches/030_tests_skip_filechooser.patch:
      - New patch: skip filechooser tests as they are not designed to
        be run without gtk+ installed.
 -- Sebastien Bacher <email address hidden> Mon, 25 Feb 2013 16:29:19 +0100

Changed in gtk+3.0 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Steven Sheehy (steven-sheehy) wrote :

Marking as invalid since there is nothing to fix in linuxdcpp and no way to mark as duplicate of a GTK+ bugzilla bug. The fix for GTK+ is now available in 2.24.18. Upgrade and retry.

Changed in linuxdcpp:
importance: Medium → High
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.