Re: xfce4-mount-plugin

2013-03-04 Thread Olivier Duchateau
2013/3/4 Jason Bacon :
>
> I maintain and develop sysutils/desktop-installer, which began as a simple
> script for setting up XFCE, until I realized that 99% of what it does is
> desktop-independent, so now it supports most common desktops.
>
> Now that xfce4-mount-plugin is available, I'm working on getting CD and
> flash drive mounts working out-of-the-box for members of the operator group.
>
> It's almost there if the following steps are taken:
>
> 1) Install the following in sudoers.d/mounts:
>
> %operator ALL=(ALL) NOPASSWD:  /sbin/mount /dev/cd0, /sbin/umount /dev/cd0,
> /sbin/mount /media/cdrom0, /sbin/umount /media/cdrom0, /sbin/mount /dev/cd1,
> /sbin/umount /dev/cd1, /sbin/mount /media/cdrom1, /sbin/umount
> /media/cdrom1, /sbin/mount /dev/da0a, /sbin/umount /dev/da0a, /sbin/mount
> /media/flash_ufs, /sbin/umount /media/flash_ufs, /sbin/mount /dev/da0s1,
> /sbin/umount /dev/da0s1, /sbin/mount /media/flash_fat, /sbin/umount
> /media/flash_fat, /sbin/mount /dev/da0s1, /sbin/umount /dev/da0s1,
> /sbin/mount /media/flash_ntfs, /sbin/umount /media/flash_ntfs
>
> An alternative to sudo would be to change the ownership of the mount points
> when a user logs in under XFCE and enable vfs.usermount.  This avoids the
> need for sudo, but limits mounting to users on the console, which is
> probably OK.
>
> 2) Add the appropriate fstab entries
>
> 3) Configure xfce4-mount-plugin for each user.
>
> 4) Put the following in /usr/local/etc/gamin/gaminrc to that gam_server
> doesn't prevent umounts:
>
> poll /media/cdrom0
> poll /media/cdrom1
> poll /media/flash_ufs
> poll /media/flash_fat
> poll /media/flash_ntfs
>
> I'd like to find a way to eliminate step 3, so that mounting just works for
> all users in the operator group.
>
> From my investigation so far, I've found 2 possibilites:
>
> 1) Install an appropriate xfce4-mount-plugin-??.rc in
> /usr/local/etc/xdg/xfce4/panel that adds sudo to the mount commands.  This
> file will probably be version-specific, so it will have to be regenerated
> with every upgrade of the plugin.
>
> or
>
> 2) Patch the source files with the following:
>
> sed -i '' -e 's|"mount %d"|"sudo mount %d"|g' \
> -e 's|"umount %d"|"sudo umount %d"|g' \
> work/xfce4-mount-plugin-*/panel-plugin/mount-plugin.h
>
> The above only changes the default custom command, but does not affect the
> built-in default if custom commands are not selected.  I haven't figured out
> how to fix this yet.

User can modify mount and umount command, see preferences dialog.
In order to, if usermount is set, user can use mount command without sudo.

xfce4-mount-plugin reads mount points from /etc/fstab, it can't mount
new devices. If you need plugin wich detects new devices like CDRom,
USB stick, , i think you must use xfce4-genmon-plugin with your
own shell script or sysutils/automounter.

If you known C, you can also look to GIO (it's part of GLib) [1],
there're functions for mount devices.

[1] http://developer.gnome.org/gio/2.28/volume_mon.html

>
> I also added the following patch, although I'm still uncertain whether it's
> a better default:
>
> sed -i '' -e \
> 's|on_mount_cmd = g_strdup("")|on_mount_cmd = g_strdup("thunar
> %m")
> work/xfce4-mount-plugin-*/panel-plugin/mount-plugin.c

You can also use g_spawn_command_line_sync() function [2].

[2] 
http://developer.gnome.org/glib/2.28/glib-Spawning-Processes.html#g-spawn-command-line-sync

>
> Would you be amenable to changing the default behavior of the port to
> eliminate the need for users to do manual configuration?  If not, I'll do
> some sort of workaround in desktop-installer.

Before, report your patch upstream.

>
> Regards,
>
> --
> ~
> Jason W. Bacon
> jwba...@tds.net
> http://personalpages.tds.net/~jwbacon
> ~
>
>
> ___
> freebsd-xfce@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-xfce
> To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"



-- 
olivier
___
freebsd-xfce@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xfce
To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"


xfce4-mount-plugin

2013-03-04 Thread Jason Bacon


I maintain and develop sysutils/desktop-installer, which began as a 
simple script for setting up XFCE, until I realized that 99% of what it 
does is desktop-independent, so now it supports most common desktops.


Now that xfce4-mount-plugin is available, I'm working on getting CD and 
flash drive mounts working out-of-the-box for members of the operator group.


It's almost there if the following steps are taken:

1) Install the following in sudoers.d/mounts:

%operator ALL=(ALL) NOPASSWD:  /sbin/mount /dev/cd0, /sbin/umount 
/dev/cd0, /sbin/mount /media/cdrom0, /sbin/umount /media/cdrom0, 
/sbin/mount /dev/cd1, /sbin/umount /dev/cd1, /sbin/mount /media/cdrom1, 
/sbin/umount /media/cdrom1, /sbin/mount /dev/da0a, /sbin/umount 
/dev/da0a, /sbin/mount /media/flash_ufs, /sbin/umount /media/flash_ufs, 
/sbin/mount /dev/da0s1, /sbin/umount /dev/da0s1, /sbin/mount 
/media/flash_fat, /sbin/umount /media/flash_fat, /sbin/mount /dev/da0s1, 
/sbin/umount /dev/da0s1, /sbin/mount /media/flash_ntfs, /sbin/umount 
/media/flash_ntfs


An alternative to sudo would be to change the ownership of the mount 
points when a user logs in under XFCE and enable vfs.usermount.  This 
avoids the need for sudo, but limits mounting to users on the console, 
which is probably OK.


2) Add the appropriate fstab entries

3) Configure xfce4-mount-plugin for each user.

4) Put the following in /usr/local/etc/gamin/gaminrc to that gam_server 
doesn't prevent umounts:


poll /media/cdrom0
poll /media/cdrom1
poll /media/flash_ufs
poll /media/flash_fat
poll /media/flash_ntfs

I'd like to find a way to eliminate step 3, so that mounting just works 
for all users in the operator group.


From my investigation so far, I've found 2 possibilites:

1) Install an appropriate xfce4-mount-plugin-??.rc in 
/usr/local/etc/xdg/xfce4/panel that adds sudo to the mount commands.  
This file will probably be version-specific, so it will have to be 
regenerated with every upgrade of the plugin.


or

2) Patch the source files with the following:

sed -i '' -e 's|"mount %d"|"sudo mount %d"|g' \
-e 's|"umount %d"|"sudo umount %d"|g' \
work/xfce4-mount-plugin-*/panel-plugin/mount-plugin.h

The above only changes the default custom command, but does not affect 
the built-in default if custom commands are not selected.  I haven't 
figured out how to fix this yet.


I also added the following patch, although I'm still uncertain whether 
it's a better default:


sed -i '' -e \
's|on_mount_cmd = g_strdup("")|on_mount_cmd = 
g_strdup("thunar %m")

work/xfce4-mount-plugin-*/panel-plugin/mount-plugin.c

Would you be amenable to changing the default behavior of the port to 
eliminate the need for users to do manual configuration?  If not, I'll 
do some sort of workaround in desktop-installer.


Regards,

--
~
Jason W. Bacon
jwba...@tds.net
http://personalpages.tds.net/~jwbacon
~


___
freebsd-xfce@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xfce
To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"


Re: Desktop backgrounds/xfdesktop

2013-03-04 Thread Olivier Duchateau
2013/3/4 Warren Block :
> On Mon, 4 Mar 2013, Olivier Duchateau wrote:
>
>> Now, with the latest release of x11-wm/xfce4-desktop (4.10.1),
>> wallpapers searched for in /usr/local/share/backgrounds/xfce/ and like
>> Xfce <= 4.8 /usr/local/share/xfce4/backdrops/  this is new with this
>> release. If no wallpaper was specified, of course.
>
>
> pkg_info -W confirmed that all the files in
> /usr/local/share/xfce4/backdrops/ were leftovers, so I removed that
> directory.
>
>
>>> By messing around with it, I somehow broke my entire xfdesktop, and now
>>> there is just a gray background with no desktop icons, and the logout
>>> button
>>> does not log out.  The panel works, and keyboard shortcuts and everything
>>> else.
>>
>>
>> I think, xfce4-settings is missing (I had same problem, but wallpaper
>> was ok). If you have log somewhere (in your $HOME, or /var/log
>> directory), it's better.
>
>
> Removing the backdrops directory was all it took, the desktop is back and
> working normally now.

Great :)

>
> Thanks!



-- 
olivier
___
freebsd-xfce@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xfce
To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"


Re: Desktop backgrounds/xfdesktop

2013-03-04 Thread Warren Block

On Mon, 4 Mar 2013, Olivier Duchateau wrote:


Now, with the latest release of x11-wm/xfce4-desktop (4.10.1),
wallpapers searched for in /usr/local/share/backgrounds/xfce/ and like
Xfce <= 4.8 /usr/local/share/xfce4/backdrops/  this is new with this
release. If no wallpaper was specified, of course.


pkg_info -W confirmed that all the files in 
/usr/local/share/xfce4/backdrops/ were leftovers, so I removed that 
directory.



By messing around with it, I somehow broke my entire xfdesktop, and now
there is just a gray background with no desktop icons, and the logout button
does not log out.  The panel works, and keyboard shortcuts and everything
else.


I think, xfce4-settings is missing (I had same problem, but wallpaper
was ok). If you have log somewhere (in your $HOME, or /var/log
directory), it's better.


Removing the backdrops directory was all it took, the desktop is back 
and working normally now.


Thanks!
___
freebsd-xfce@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xfce
To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"


Re: Desktop backgrounds/xfdesktop

2013-03-04 Thread Olivier Duchateau
2013/3/4 Warren Block :
> Thanks for the latest updates.  No problems with them except that the
> desktop background settings were ignored, regardless of setting.  On my
> system, it just showed the striped background with the xfce logo.

Now, with the latest release of x11-wm/xfce4-desktop (4.10.1),
wallpapers searched for in /usr/local/share/backgrounds/xfce/ and like
Xfce <= 4.8 /usr/local/share/xfce4/backdrops/  this is new with this
release. If no wallpaper was specified, of course.

Your description seems, that you still have wallpaper dealt with
previous release of Xfce (before 4.10). With Xfce 4.10 there's **one**
wallpaper (blue and Xfce logo in middle).

You can see your last wallpaper with this command

xfconf-query -cl xfce4-desktop

Select property (for example)

xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/last-image

xfdesktop was tested with custom and default (without modification)
session, wallpaper displayed fine.

>
> By messing around with it, I somehow broke my entire xfdesktop, and now
> there is just a gray background with no desktop icons, and the logout button
> does not log out.  The panel works, and keyboard shortcuts and everything
> else.

I think, xfce4-settings is missing (I had same problem, but wallpaper
was ok). If you have log somewhere (in your $HOME, or /var/log
directory), it's better.

>
> This problem seems familiar, but I can't recall how to fix it.  Killing
> xfdesktop or xfce4-session does not do it, and the logout button has a long
> delay before eventually working.  Suggestions welcome.
> ___
> freebsd-xfce@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-xfce
> To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"



-- 
olivier
___
freebsd-xfce@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xfce
To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"


Current problem reports assigned to freebsd-xfce@FreeBSD.org

2013-03-04 Thread FreeBSD bugmaster
Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.


S Tracker  Resp.  Description

o ports/174768 xfce   x11-wm/xfce4-panel starts in properies edit state
o ports/174650 xfce   x11-wm/xfce4 crash with exaGetPixmapFirstPixel called 
o ports/173393 xfce   x11-wm/xfce4 window manager broken
o ports/169079 xfce   print/xfce4-print does not build on i386
o ports/168708 xfce   x11-fm/thunar-vfs: wrong dependencies?
o ports/165685 xfce   x11-wm/xfce4 - excessive replication of menu items
o ports/155431 xfce   x11-wm/xfce4: The little bugs

7 problems total.

___
freebsd-xfce@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xfce
To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"