You are not logged in.
Hello,
found this nice little gui for btrfs: http://carfax.org.uk/btrfs-gui
Perhaps someone could make a pkgbuild?
Thank you in advance,
Lupo
Offline
It looks interesting, but doesn't work with python 3.2 (for me at least).
Offline
It looks interesting, but doesn't work with python 3.2 (for me at least).
Could you let me know what your problem was? I've made a PKGBUILD which I think should be correct and whilst I'm not very good with Python and creating PKGBUILDs for Python apps, as far as I'm aware I've done everything I should need to here. The PKGBUILD I'm using is as follows:
# Maintainer: Joel Heaton <jheaton at archlinux dot us>
pkgname=btrfs-gui
pkgver=0.2.1
pkgrel=1
pkgdesc="GUI tool for inspecting and managing btrfs filesystems"
arch=('any')
url="http://carfax.org.uk/btrfs-gui"
license=('GPL')
depends=('python2>=2.6' 'python>=3.1' 'tk')
source=(http://carfax.org.uk/sites/default/files/$pkgname-v$pkgver.tar.gz)
md5sums=('05971776207dac7262f3489140b21999')
build() {
cd $srcdir/$pkgname-v$pkgver
python setup.py install --root=$startdir/pkg --prefix=/usr
}
When I run the program the way the webpage states, I get this:
joel [btrfs-gui]
> sudo btrfs-gui
Traceback (most recent call last):
File "/usr/bin/btrfs-gui", line 5, in <module>
btrfsgui.main.main()
File "/usr/lib/python3.2/site-packages/btrfsgui/main.py", line 24, in main
subproc = init_root_process(options)
File "/usr/lib/python3.2/site-packages/btrfsgui/sudo.py", line 41, in init_root_process
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "/usr/lib/python3.2/subprocess.py", line 741, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.2/subprocess.py", line 1356, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: './btrfs-gui-helper'
If I run it without sudo, the program loads, but I get an error warning me that some icons are missing (even though these have been installed to /usr/share/btrfs-gui/img as shown further below). It also doesn't appear to be looking in the correct directory (/usr/bin) judging by the output I get:
joel [btrfs-gui]
> btrfs-gui
sudo: ./btrfs-gui-helper: command not found
sudo: /sbin/btrfs-gui-helper: command not found
sudo: /bin/btrfs-gui-helper: command not found
sudo: /usr/sbin/btrfs-gui-helper: command not found
Could not find icon file img/fs_icon.gif.
Could not find icon file img/disk_icon.gif.
Could not find icon file img/directory.gif.
Could not find icon file img/subvolume.gif.
Could not find icon file img/subvolume_default.gif.
joel [~]
> ls /usr/bin | grep btrfs-gui
btrfs-gui
btrfs-gui-helper
joel [~]
> ls /usr/share/btrfs-gui/img
directory.gif disk_icon.gif fs_icon.gif fs_icon_open.gif icons.svg subvolume_default.gif subvolume.gif
I'm wondering if it's because part of it is written in Python 3 and part in Python 2; I'm not really sure on this, though. Like I said, I'm not great with Python (although I'm learning) or creating the PKGBUILDs for programs written in it. If someone can offer some advice on this matter, I would appreciate it as I'd like to get this software running on my system, having just started playing with btrfs filesystems.
Offline
Could you let me know what your problem was?
I don't remember what the problem was. I managed to make it work today. It needs to be patched to run from within the /usr directory. The patch is very simple, but I'm not going to publish it nor the PKGBUILD, because I strongly feel, that the application can really eat your hamster.
Offline
JHeaton wrote:Could you let me know what your problem was?
I don't remember what the problem was. I managed to make it work today. It needs to be patched to run from within the /usr directory. The patch is very simple, but I'm not going to publish it nor the PKGBUILD, because I strongly feel, that the application can really eat your hamster.
What makes you say that, exactly? I'd be interested in hearing. I could probably create a patch myself so that wouldn't be a problem anyway, but I would like to know your reasons for thinking that.
Offline
What makes you say that, exactly?
1) hardcoded paths indicate very bad coding
2) btrfs-gui-helper crashes constantly
I wouldn't let the thing fiddle with my filesystems.
Offline
JHeaton wrote:What makes you say that, exactly?
1) hardcoded paths indicate very bad coding
2) btrfs-gui-helper crashes constantlyI wouldn't let the thing fiddle with my filesystems.
Fair enough. I might have a deeper look in to the code and see if certain things can be tweaked a little, but with that in mind, I will probably end up giving it a miss. Thanks for the heads-up.
Offline