sevka / nfs-lan

NFS (Network File System) support in Nautilus (Gnome default file manager)
http://nfs-lan.sevka.info
12 stars 1 forks source link

does not work with nautilus 3.2 #5

Open cellstorm opened 12 years ago

cellstorm commented 12 years ago

the gnome guys have altered quite a lot in nautilus 3 series. Nfslan installs fine on percise pangolin, but the interface in nautilus does not show up. I am about to compile nautilus 2.3 series for having nfs lan back. Also, the changes they made to nautilus are i favour of gnome shell, which is not what I use, so I find it a bit respectless that they are doing so, without retaining the original compatibilities.

sevka commented 12 years ago

Yes, I know about it. But at the moment I don't know how to fix it :( There are no new documentation about Nautilus plugins development. I installed Ubuntu 11.10 on my desktop. Ohhh... I absolutely can't understand Unity, so I installed gnome-shell. It better, but still not usable. I didn't not found any new feature in Nautilus 3. But some features are missing. Where the toolbar? I am upset :(

cellstorm commented 12 years ago

toolbar was castrated due tu design decisions. Nautilus is now no longer in charge of everything, desktop does not get drawn by default, and media management was given to gnome-session etc. so there arem many changes, they wanted to reduce the renundances with gnome shell.

we should write a bug report to the nautilus team. There seem to be many regressions with 3, also the icons for plugins are disfunct. so no icons for terminal plugin, nautilus actions.... I am in mail contact with the nautilus actions developer, he describes it like "I sometimes feel as I was running behind a mad truck." So lets scream at them and be rough, they will have to listen.... If I would release such a core component of an os, I would definitely be careful to have at least some documentation for the plugin developers..

Yeah unity is... well... Gnome shell is.... you know, all have their place, and maybe some people get more productve with them...

As I am in NEED to have a Professional working environment for my own distribution, I have started to experiment with the new percise pangolin code base. I have found a working solution for me, using classic panel (a fork of the gnome fallback mode, which works like gnome panel again - there is a ppa - go for it!) and my custom built minimal openbox based environment, which is loosely modeled after crunchbang linux.

It is all alpha right now, precise and my work, but works ok most of the time. I will release a new version on my distro based on precise, thats for shure. If you want to try out, I could upload an image. It is sub700mb.

cellstorm commented 12 years ago

hello. I have chatted a bit in the #nautilus chanel on gimpnet, and the guys told me the following: you should update your code to work with the new gobject introspection python bindings,they also said that removed functionality is not the big problem (toolbar items can't be added from extensions any more, but the menu items should work fine)...

bit.ly/tPYPXk

sevka commented 12 years ago

Hi. Now I using 10.04 on my main PC. So tired of new Ubuntus... Ok, toolbar is not so important. I think this is a fresh documentation: http://projects.gnome.org/nautilus-python/documentation/html/index.html I try to do nfs-lan release for new Nautilus.

On 04.01.2012 18:10, cellstorm wrote:

hello. I have chatted a bit in the #nautilus chanel on gimpnet, and the guys told me the following: you should update your code to work with the new gobject introspection python bindings,they also said that removed functionality is not the big problem (toolbar items can't be added from extensions any more, but the menu items should work fine)...


Reply to this email directly or view it on GitHub: https://github.com/sevka/nfs-lan/issues/5#issuecomment-3356549

cellstorm commented 12 years ago

YEAH seems the right document! great to hear you are trying the gobject introspection thing, I think it is a pretty powerful concept.

I am also still on maverick - actually my whole distribution is built upon maverick right now. But I have found a really cool solution with classic panel, it works great in my new base system. All the applet from gnome2 have been ported, its really nice. I also have tried mate (the gnome2 fork), which works great too, after a bit tweaking with the themes, but as nautilus is renamed to caja, the nautilus plugins do not seem to work... hmm.

nevertheless, do not fear the new ubuntus... the stock system is a nightmare for me (except you like unity sytle, hiding of scrollbar, global menu etc..). One could go for linux mint, lubuntu, ubuntustudio etc as a base system, which would help. But especially for a distributor like me, ubuntu's software collection (plus ppas) is unmatched anywhere else.

My new base system is progressing nicely, too. I have quite fun building it. There is my minimal openbox interface, loosely modeled after crunchbang linux. Then there is classic panel, and also gnome shell right now, though that does not yet work in virtual machines so out of my scope right now. Seems like the fork from linux mint and the new plugin system with its webbased install interface will provide enough playground for the future...

sevka commented 12 years ago

Ups. Actually I mean that I gonna to try :) But it is possible with this documentation. Last time I search for a new documentation, I found nothing, just the old one. I happy that guys from nautilus didn't kill LocationWidgetProvider: http://projects.gnome.org/nautilus-python/documentation/html/class-nautilus-python-location-widget-provider.html Class, that allows to put any widget below tollbar and location bar.

I am very sad of new ubuntus. The old versions were usable immediately after install, but the new one not. I hate unity, these dissapearing panels, global menu etc. Gnome-shell is better, but still not usable for me too. Gnome3 in classic mode sucks too.

On 05.01.2012 21:48, cellstorm wrote:

YEAH seems the right document! great to hear you are trying the gobject introspection thing, I think it is a pretty powerful concept.

I am also still on maverick - actually my whole distribution is built upon maverick right now. But I have found a really cool solution with classic panel, it works great in my new base system. All the applet from gnome2 have been ported, its really nice. I also have tried mate (the gnome2 fork), which works great too, after a bit tweaking with the themes, but as nautilus is renamed to caja, the nautilus plugins do not seem to work... hmm.

nevertheless, do not fear the new ubuntus... the stock system is a nightmare for me (except you like unity sytle, hiding of scrollbar, global menu etc..). One could go for linux mint, lubuntu, ubuntustudio etc as a base system, which would help. But especially for a distributor like me, ubuntu's software collection (plus ppas) is unmatched anywhere else.

My new base system is progressing nicely, too. I have quite fun building it. There is my minimal openbox interface, loosely modeled after crunchbang linux. Then there is classic panel, and also gnome shell right now, though that does not yet work in virtual machines so out of my scope right now. Seems like the fork from linux mint and the new plugin system with its webbased install interface will provide enough playground for the future...


Reply to this email directly or view it on GitHub: https://github.com/sevka/nfs-lan/issues/5#issuecomment-3375227

cellstorm commented 12 years ago

ok, glad you try. would be a shame if your work does end here. Before that happens, I am gonna learn how to port it ;-)

Gnome3 in classic mode sucks too

just try classic-panel: its a fork of fallback mode. https://launchpad.net/~glasen/+archive/classic-panel

sudo add-apt-repository ppa:glasen/classic-panel sudo apt-get update sudo apt-get install classic-panel

now log out , and log into the "classic panel" session

you won't be disappointed, I promise. Its really the same interface as gnome2, you e.g. have your system menu back.

Apart from that

, you have the same Interface as gnome2.

You will also have to install

https://launchpad.net/~jconti/+archive/gnome3

sudo add-apt-repository ppa:jconti/gnome3 sudo apt-get update sudo apt-get install indicator-applet-complete

, which is a port of the indicator applet api to gnome3, so that all the indicator applets which are in gnome2/unity work in classic panel.

Indicator-applet-complete automatically starts all installed indicatores. If you do not want that, install the package indicator-applet.

In Gnome3, theming has now to be done in css files (there is a gome-panel.css in the gtk3.0/apps folder of you preferred theme , I recommend the "Universal" theme btw), and the .config/gtk-3.0/settings.ini allows for gtk3.0 adaptions, it works like the .gtkrc in gtk2.

I have now put there

[Settings] gtk-icon-sizes = panel-menu-bar=16,16

to control the icons size in the gnome menu (and thus the size of the whole menu), as I want my menus to be more compact.

sevka commented 12 years ago

Oh, thanks a lot for instructions. And what version of Ubuntu do you recommend? 10.10, 11.04 or 11.10? As I understood, you use 10.10? Are there a gnome3 and new Nautilus in 10.10?

On 06.01.2012 13:03, cellstorm wrote:

ok, glad you try. would be a shame if your work does end here. Before that happens, I am gonna learn how to port it ;-)

just try classic-panel: https://launchpad.net/~glasen/+archive/classic-panel

sudo add-apt-repository ppa:glasen/classic-panel sudo apt-get update sudo apt-get install classic-panel

you won't be disappointed, I promise. Its really the same interface as gnome2, you e.g. have your system menu back.

Apart from that:

  • you have to ALT+right click to add stuff to the panel, move it etc,
  • the launchers put onto the panel. as well as the applets are now "snapped to grid", so you cannot move them around to any position you like, they are "jumping" to a predefined palce - they are snapping to the middle then e.g. - ( I just made a dummy .desktop, with a transparent png as icon, as "spacer" to e.g have gedit staying a bit more isolate for draging& dropping thins into it)
  • the function for putting submenus or drawers onto the panel (actually the whole rightclick menu in the gnome menu) is missing

you have the same Interface as gnome2.

theming has now be done in .config/gtk-3.0/settings.ini

I have now put

[Settings] gtk-icon-sizes = panel-menu-bar=16,16

to control the icons size (and thus the size of the whole menu), as I want my menus to be more compact.

you will also have to install

https://launchpad.net/~jconti/+archive/gnome3

sudo add-apt-repository ppa:jconti/gnome3 sudo apt-get update sudo apt-get install indicator-applet-complete

which is a port of the indicator applet api to gnome3, so that all the indicator applets which were in gnome2 work in classic panel.

indicator-applet-complete automatically starts all installed indicatores. If you do not want that, install the package indicator-applet.


Reply to this email directly or view it on GitHub: https://github.com/sevka/nfs-lan/issues/5#issuecomment-3383205

cellstorm commented 12 years ago

these instructions should work with 11.10, and 12.04. I work on 10.10, right. there is no gnome3/gtk3 here,and software is beginning to get outdated, hence my effort of building a new base system based on 12.04

recommend...I would recommend my distribution: openArtist ;-). no really, depends what you want to do. The latest ubuntu version is nice if you want the most recent software. The problem here is the transition from gtk2 to gtk3, plus from gnome2 to gnome3 respectively. And the globalmenu, hiding scrollbar - but these can be turned off easily. If you do not need the newest stuff, 10.10 if working fine. If you want to have a new stable system based on gnome3 software stack, for newest hardware and software, go for 11.10, and apply these instructions. Just try it out in a virtual machine , e.g in virtual box, its easy.

If you are adventureous, or want to try my work in a virtual machine, I could upload an Image of my 12.04 base system.

sevka commented 12 years ago

Actually I am interested in OS for artists. Because I have such hobbies like photography and music recording. I use Ubuntu for photos (but actually I don't like linux software for RAW processing). But I have Windows XP for music, because multitracking recording is horrible in linux for me. And my midi keyboard doesn't work, and no working software guitar processors in Linux too. I don't understand sound system in Linux and can't use it. I tried Ubuntu studio some time ago, but there are all the same like in Ubuntu.

So I'll take a look to you OS with pleasure if you upload it. I understand that I have to switch to 12.04 some day.

On 06.01.2012 17:07, cellstorm wrote:

these instructions should work with 11.10, and 12.04. I work on 10.10, right. there is no gnome3 here, hence my effort of building a new base system based on 12.04

recommend...I would recomend openArtist ;-). no really, depends what you want to do. the latest version is nice if you want the most recent software. The problem here is the transition from gtk2 to gtk3, from gnome2 to gnome3 respectively. If you do not need the newest stuff, 10.10 if working fine. If you want to have a new stable system based on gnome3 software stack, go for 11.10, and apply these instructions. Just try it in a virtual machine , e.g in virtual box, its easy.

If you are adventureous, or want to try my work in a virtual machine, I could upload an Image of my 12.04 base system.


Reply to this email directly or view it on GitHub: https://github.com/sevka/nfs-lan/issues/5#issuecomment-3385582

cellstorm commented 12 years ago

just download it at openArtisthq.org

For raw tools, there are plenty, darktable to mention, music recording tools, too, traverso or ardour I would mention first. Midi keyboard should work if it does not need any special driver... see ~/Documentation folder for audio howto. , realtime guitar processors are creox c, rackarrack and guitarx, which should also work gracefully, The audio howto also explains the linux audio basics. As I have most of the programs installed by default, you will definitley find sth what works for you. If not, you can go for commerical ones, like harrison mixbus, reaper, energy xt, bibble Pro, lightzone 3.x, you can even run adobe lightroom in wine...

cellstorm commented 12 years ago

hello, any news regarding the nautilus 3.x port?

I actually also have patched nautilus to give back old buttons and sidebar order... add computer:/// uri And I will patch it to include your file:///nfs nfs-share folder if its ready...

sevka commented 12 years ago

No news, sorry :( I am too lazy and I hate myself

cellstorm commented 12 years ago

ok, maybe this one gives you a bump:

http://img444.imageshack.us/img444/1185/screenshot17g.png

cellstorm commented 12 years ago

hello, kindly asking again if you are more into mood of trying to do new version. Would support you in any way possible.

sevka commented 12 years ago

Hi. Ok, I installed ubuntu 12.04 yestarday and started to work. At the moment I only discovered new folders where I have to put plugins and python modules, because it different from gnome-2 environment. As I understood I have to rewrite GUI with GTK3. I succesfully run my sharing dialog window from the command line, but it doesn't work from Nautilus.

sevka commented 12 years ago

Hi. Check out this alpha release of nfs-lan for nautilus 3.x. It works on my Ubuntu 12.04. https://dl.dropbox.com/u/279140/nfs_lan-1.0.deb

cellstorm commented 11 years ago

great!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I have just seen it now..... will try immediately and report back. About nautilus in openArtist: I have now made my own patched version, and will put the NFS-share folder into the sidbar, right under network, I will post the ready-to-use package here then. thanks!

cellstorm commented 11 years ago

ok, works flawlessly so far, I have my shares, and they get listed. Nautilus spits some of these:

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function return info.invoke(_args, *_kwargs) TypeError: update_file_info() takes exactly 4 arguments (2 given)

cellstorm commented 11 years ago

ok, I was trying it further, and found some flaws. First of all, it happened twice to me that a share which was browsable before, stopped to be suddenly, there is just the loading sign on the right bottom ofnautilus. restarting nautilus, clicking on refresh did not help.

Other than that, I also had a complete freeze when pressing F5 to reffresh a shared folder view in nautilus. Further, nautilus refused to start after killing it, .xsession-errors gave me a "could not register the application: Timeout was reached" , which is a dbus-error I googled. Also, a similar dbus error accured when I was trying to open a textfile on a share in gedit, gedit somehow freezed and I did not get it run again until reboot. sudo gedit / nautilus worked though...

sevka commented 11 years ago

I also had some freezing and lost shares. But it looks like autofs errors or real connection problem, not nfs-lan and not Nautilus errors. Actually if some share get lost in some reason, any software (which works with this share) get freezing. It's not good, but it's normal NFS behavior I think. So I usually add such line to the /etc/auto.master file: /net -hosts --timeout=60 After this NFS unmount shares automatically if you don't use it, and software not freezing.

cellstorm commented 11 years ago

well then it seems strange that the apps do not start again after this 60 seconds, and have this dbus-error.

I have now integrated nfs/lan into my nautilus. You can try it out here: openartisthq.org/nautilus.tar.gz

works so far, but there is one bug: if I click on /net via the integrated item in the network section, it jumps to /net, as expected, but when nautilus is sized to a little window, it also minimizes the sidebar to a minimum, as seen here openartisthq.org/nautilus.png. Your custom toolbar seems to minimize the sidebars when I scale down the nautilus window. And when I scale it back to normal size, the sidebar stays minimized.

regarding the File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function return info.invoke(_args, *_kwargs) TypeError: update_file_info() takes exactly 4 arguments (2 given)

I searched here;

http://projects.gnome.org/nautilus-python/documentation/html/class-nautilus-python-info-provider.html seems to take one argument, plus self;

I tried to alter update_file_info in nfs_share_nautilus.py, with not really getting whats going on here. I asked on python irc, tried to debug with ipdb, but noone could help me.. will ask nautilus guys

cellstorm commented 11 years ago

no real progress here..

I noticed when I have a freeze, and the network interface is restarted, nautilus is trying to start, I see some plugins initializing, but the it just stops in the middle. So it goes past the "could not register the application: Timeout was reached". But I also tried to access a nfs folder with thunar - this one hangs too, then, and could not be started until reboot

I want to have a means to reset this, so that the apps are starting again without reboot. I tried to restart avahi, network, but no avail. I have that 60 seconds timeout set, but it does not help..

cellstorm commented 11 years ago

nice to see you are still working on it! I have now integrated it into my nautilus version.. see. http://s17.postimg.org/jgoe9ly1r/screenshot_09.png

btw, your build.sh is not working, http://paste.ubuntu.com/5718551 does. Whats with exports_sharing.py? Its not in the git, but in the premade debs?

Your control file is fine, but the size of the deb is 68 bytes (du -k in the directory) , not 12000. And you have a hidden control~ file in the base folder or your already-packed debs, which would be put to / when installed, and in the DEBIAN folder in the git repo. Generally, setting root permissions for files to be copied into /usr is the way to go.

There is also a problem with the python files: normally, if you use the python install mechanism of ubuntu (which is overcomplicated), the python files get compiled to pyc files on install, and removed when purging/updating the package. Yours are not, which would not really be a problem if nfs-lan is installed freshly, BUT if there is an older installation of nfs-lan (0.3 by me here), these files are a big problem, as they do get called BEFORE the .py files of the newer version, and do not get removed when removing your package. So either ship the .deb with .pyc's already in or add python -m compileall /path/to/folder/where/pythonFilesAre/ to your postinst file, which would recompile all python pyc files in that folder.

Why not let the postinst script also do the magic with /etc/auto.master ?