Your message dated Mon, 03 Mar 2008 06:17:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#459369: fixed in ltspfs 0.5.0~bzr20080303-1
has caused the Debian Bug report #459369,
regarding ltspfs: patch for automatically creating icons on the kde desktop
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
459369: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=459369
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: ltspfs
Version: 0.4.3+debian2+0.edu.0.etch.1
Severity: normal

The attached patch creates corresponding icons on the users kde desktop when 
they insert a removable device.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-5-486
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)

Versions of packages ltspfs depends on:
ii  fuse-utils             2.5.3-4.4         Filesystem in USErspace (utilities
ii  libc6                  2.3.6.ds1-13etch4 GNU C Library: Shared libraries
ii  libfuse2               2.5.3-4.4         Filesystem in USErspace library
ii  python                 2.4.4-2           An interactive high-level object-o

ltspfs recommends no packages.

-- no debconf information
--- /usr/sbin/ltspfsmounter.orig	2008-01-05 21:21:40.000000000 +0100
+++ /usr/sbin/ltspfsmounter	2008-01-05 21:25:51.000000000 +0100
@@ -7,6 +7,13 @@
 def get_var(name):
     return os.environ.get(name)
 
+def get_desktop_file_path(dev):
+    return os.path.expanduser("~/Desktop/ltspfsmounter--%s.desktop" % (dev))
+
+def get_mountpoint(dev):
+    import getpass
+    return '/media/%s/%s' % (getpass.getuser(), dev)
+
 def add_ltspfsmount(conn, path, root, dev):
     hidden_mount = '%s/%s' % (root, dev)
     lbmount_command = ['lbmount', dev]
@@ -29,6 +36,30 @@
     except OSError, e:
         print >>sys.stderr, "suid mount failed:", e
 
+    desktop_file_s = get_desktop_file_path(dev)
+    if os.path.exists(desktop_file_s):
+        print >>sys.stderr, ".desktop file already exists, skipping"
+        return
+
+    if dev.startswith('usb'):
+        icon = 'usbpendrive_mount'
+    elif dev.startswith('ata'):
+        icon = 'hdd_mount'
+    elif dev.startswith('floppy'):
+        icon = '3floppy_mount'
+    elif dev.startswith('cdrom'):
+        icon = 'cdrom_mount'
+    else:
+        icon = 'usbpendrive_mount'
+    mountpoint = get_mountpoint(dev)
+
+    try:
+        desktop_file = open(desktop_file_s, 'w')
+        desktop_file.write('[Desktop Entry]\nEncoding=UTF-8\nName=%s\nIcon=%s\nType=Link\nURL=%s\n' % (dev, icon, mountpoint))
+        desktop_file.close()
+    except IOError, e:
+        print >>sys.stderr, 'unable to create desktop file:', e      
+
 def remove_ltspfsmount(root, dev):
     hidden_mount = "%s/%s" % (root, dev)
     lbumount_command=['lbmount', '--umount', dev]
@@ -46,6 +77,11 @@
     if os.access(hidden_mount, 0):
         os.rmdir(hidden_mount)
 
+    desktop_file_s = get_desktop_file_path(dev)
+    if os.path.exists(desktop_file_s):
+        os.unlink(desktop_file_s)
+
+
 def cleanup(user):
     known_mounts = open( '/proc/mounts', 'r' ).readlines()
     for dir in ['/media', '/tmp']:
@@ -59,6 +95,10 @@
                     call(['fusermount', '-uzq', mountpoint])
                     if os.access(mountpoint, 0):
                         os.rmdir(mountpoint)
+    import glob
+    for file in glob.glob(os.path.expanduser('~/Desktop/') + 'ltspfsmounter--*.desktop'):
+        os.unlink(file)
+
     sys.exit(0)
 
 def main():

--- End Message ---
--- Begin Message ---
Source: ltspfs
Source-Version: 0.5.0~bzr20080303-1

We believe that the bug you reported is fixed in the latest version of
ltspfs, which is due to be installed in the Debian FTP archive:

ltspfs_0.5.0~bzr20080303-1.diff.gz
  to pool/main/l/ltspfs/ltspfs_0.5.0~bzr20080303-1.diff.gz
ltspfs_0.5.0~bzr20080303-1.dsc
  to pool/main/l/ltspfs/ltspfs_0.5.0~bzr20080303-1.dsc
ltspfs_0.5.0~bzr20080303-1_i386.deb
  to pool/main/l/ltspfs/ltspfs_0.5.0~bzr20080303-1_i386.deb
ltspfs_0.5.0~bzr20080303.orig.tar.gz
  to pool/main/l/ltspfs/ltspfs_0.5.0~bzr20080303.orig.tar.gz
ltspfsd_0.5.0~bzr20080303-1_i386.deb
  to pool/main/l/ltspfs/ltspfsd_0.5.0~bzr20080303-1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <[EMAIL PROTECTED]> (supplier of updated ltspfs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun,  2 Mar 2008 21:39:24 -0800
Source: ltspfs
Binary: ltspfs ltspfsd
Architecture: source i386
Version: 0.5.0~bzr20080303-1
Distribution: unstable
Urgency: low
Maintainer: LTSP Debian/Ubuntu Maintainers <[EMAIL PROTECTED]>
Changed-By: Vagrant Cascadian <[EMAIL PROTECTED]>
Description: 
 ltspfs     - Fuse based remote filesystem for LTSP thin clients
 ltspfsd    - Fuse based remote filesystem daemon for LTSP thin clients
Closes: 456327 459369
Changes: 
 ltspfs (0.5.0~bzr20080303-1) unstable; urgency=low
 .
   * new upstream release from bzr:
     - use /sbin/udevadm if present, fall back to udevinfo (Closes: #456327)
     - implement hook scripts for ltspfs
     - add example hook script to add icons on KDE desktops.
       thanks to Klaus Ade Johnstad (Closes: #459369)
Files: 
 ff993d3164114babb919b39614a067ec 973 net optional 
ltspfs_0.5.0~bzr20080303-1.dsc
 51d3193bd0b1de0e7d681b36ca3c3290 213245 net optional 
ltspfs_0.5.0~bzr20080303.orig.tar.gz
 21d5f2c0ecdc4ab2e69fa8d7a1926fc6 29128 net optional 
ltspfs_0.5.0~bzr20080303-1.diff.gz
 0ba2c2aeb6e9f73b3d2511e1d9136be0 19224 net optional 
ltspfs_0.5.0~bzr20080303-1_i386.deb
 785f0d99493c5f53d9c38d03ee628f3d 17800 net optional 
ltspfsd_0.5.0~bzr20080303-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHy5aklPc63BPWGpkRAp0aAJ9K/jj7s1I/o7fzunVClvgHPxARdQCfeLxS
vjT2/PVBfL//2pz+DZNWUa0=
=VMPO
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to