You are not logged in.

#1 2012-09-15 08:41:42

clpc
Member
From: Lincolnshire England
Registered: 2009-11-15
Posts: 75
Website

xfe and udevil in openbox

I use the Xfe file manager in openbox with udevil and without udisks, udisks2, pmount, consolekit or ck-launch-session .
It works fine and everything seems to mount fine but to unmount a device from Xfe produces an error because the umount command is hard-wired into Xfe and requires root privileges.
So to get around this problem I have created a new PKGBUILD that changes the Xfe umount to a 'udevil umount' with a couple of sed replacements before Xfe is built.
I know Xfe is not widely used and this is probably a bit unique to the way I use my system but I thought it may be of interest to others and if so then it is probably worth placing in AUR.
I am not in a position to maintain this in AUR so if anyone wants to take this on here is the PKGBUILD I grabbed from ABS and modified to test this.

pkgname=xfe
pkgver=1.33
pkgrel=1
pkgdesc="X File Explorer (Xfe) is an MS-Explorer like file manager for X."
arch=('i686' 'x86_64')
url="http://roland65.free.fr/xfe"
license=("GPL")
depends=('fox')
makedepends=('intltool')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('fb089ba73add411b08a6560eeb51742d')

build() {
  cd $srcdir/$pkgname-$pkgver
  sed -i s/'cmd=\"umount \"'/'cmd=\"udevil umount \"'/ src/DirPanel.cpp
  sed -i s/'cmd=\"umount \"'/'cmd=\"udevil umount \"'/ src/FilePanel.cpp
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install
}

Clive,
"Today's great idea is tomorrow's mess to clean up."

Offline

#2 2012-09-15 09:12:15

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,271

Re: xfe and udevil in openbox

clpc, you should put this in the AUR package comments or mail the maintainer.


To know or not to know ...
... the questions remain forever.

Offline

#3 2012-09-15 09:57:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,835

Re: xfe and udevil in openbox

OR... submit a feature request upstream, ideally including a patch, for user-configurable mount/umount commands.

Offline

#4 2012-09-15 10:25:11

clpc
Member
From: Lincolnshire England
Registered: 2009-11-15
Posts: 75
Website

Re: xfe and udevil in openbox

Xfe is in community and I doubt that most users of Xfe would need or want this modification, it is specific to using udevil with Xfe.
The last feature request I put forward was well over a year ago and is unlikely to happen for another year or two, Xfe is a very low priority app and as such things happen very slowly, the continents move faster and that is not a dig at the current developer, it is just how things are with Xfe.
Hence the reason I posted this here so those that are interested in the mod can use the PKGBUILD if they want and add it to AUR if they want to maintain it.


Clive,
"Today's great idea is tomorrow's mess to clean up."

Offline

#5 2012-09-15 11:15:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,835

Re: xfe and udevil in openbox

OK. However, my point remains that it would be better if these changes were made upstream.

Also, my suggestion was the implementation of user-configurable commands, so although your requirement is specific to udevil, my solution is not.

Offline

#6 2012-09-15 11:26:34

clpc
Member
From: Lincolnshire England
Registered: 2009-11-15
Posts: 75
Website

Re: xfe and udevil in openbox

If you or anyone else requires this change to be made upstream then fine, I do not.
I just thought this may be of interest to someone that maybe does want or need to take it further or just make use of it.
I am not in a position to take this any further than I have.
We used to just share stuff and that is all I was doing but I am getting the impression it is best to just keep stuff to myself nowadays.


Clive,
"Today's great idea is tomorrow's mess to clean up."

Offline

#7 2012-09-15 11:32:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,835

Re: xfe and udevil in openbox

ROFL... what are you talking about? yikes

Offline

#8 2012-09-15 11:34:23

clpc
Member
From: Lincolnshire England
Registered: 2009-11-15
Posts: 75
Website

Re: xfe and udevil in openbox

I am happy to humour you.


Clive,
"Today's great idea is tomorrow's mess to clean up."

Offline

#9 2012-09-16 04:57:41

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: xfe and udevil in openbox

If anyone cares, I submitted a feature request upstream:

https://sourceforge.net/tracker/?func=d … tid=508825

It may not get implemented for years (if ever) but at least its there.

Last edited by anonymous_user (2012-09-16 04:58:17)

Offline

Board footer

Powered by FluxBB