bilelmoussaoui / nautilus-git

Nautilus/Nemo extension to add important information about the current git directory
GNU General Public License v3.0
149 stars 9 forks source link

Support of local repositories #5

Closed fbruetting closed 7 years ago

fbruetting commented 7 years ago

Hi again, your nice script doesn't work with local repositories. Would you like to support this, too?

bilelmoussaoui commented 7 years ago

@fbruetting What do you mean by local repos?

fbruetting commented 7 years ago

Git repos, which aren't on GitHub, like this one: bildschirmfoto vom 2017-02-12 14-56-39

I only see your added top bar on projects I cloned from GitHub, but on none of my own local projects.

bilelmoussaoui commented 7 years ago

@fbruetting From where did you get this repo? I've tried it even with Archlinux AUR packages (git and it works screenshot from 2017-02-12 15-01-12

fbruetting commented 7 years ago

I created it by myself via git init…?

bilelmoussaoui commented 7 years ago

Fixed on master :-)

bilelmoussaoui commented 7 years ago

@fbruetting My bad, this wasn't fixed correctly :P now it's the case :) screenshot from 2017-02-12 15-29-59

fbruetting commented 7 years ago

Thanks, I tested it and it works (twice, but saw no difference :P). But now the Git icon now is missing, while it was there yesterday… [Installing Debian in a VM right now].

bilelmoussaoui commented 7 years ago

@fbruetting nothing changed in that part of code :o when you run Nautilus from terminal do you have any error message?

fbruetting commented 7 years ago

Just the usual stuff:

$ nautilus
(nautilus:13720): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed
(nautilus:13720): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed

But Fedora fucks up constantly in the last time, maybe it's an issue due to this: bildschirmfoto vom 2017-02-12 15-39-30

bilelmoussaoui commented 7 years ago

Kill nautilus first, nautilus -q and restart it

fbruetting commented 7 years ago

Ok, I actually did both killall nautilus and nautilus -q, but maybe in the wrong order:

$ nautilus -q
sys:1: PyGIWarning: Nautilus was imported without specifying a version first. Use gi.require_version('Nautilus', '3.0') before import to ensure that the right version gets loaded.
Initializing nautilus-dropbox 2015.10.28

$ nautilus
sys:1: PyGIWarning: Nautilus was imported without specifying a version first. Use gi.require_version('Nautilus', '3.0') before import to ensure that the right version gets loaded.
Initializing nautilus-dropbox 2015.10.28
xkbcommon: ERROR: Key "<LFSH>" added to modifier map for multiple modifiers; Using Lock, ignoring Shift
Number of files is 0
Number of files is 0
Number of files is 0
Number of files is 0
Number of files is 0
Number of files is 0
Number of files is 0
Number of files is 0

Now the icon sizes are half size… (but get restored to normal size by Ctrl+R): bildschirmfoto vom 2017-02-12 15-44-37

Git icon still missing…

bilelmoussaoui commented 7 years ago

No error message will be shown until you're on a git directory. Can you try that? maybe the icon is not loaded correctly. And by the way, i might know why :P I forgot to add a icon theme cache refresh :P

fbruetting commented 7 years ago

No, no error:

Handling file:  file:///home/frank/Informatik/Git/FeedReader
file scheme:  file
Number of files is 0
Number of files is 0
Number of files is 0
Number of files is 0
Number of files is 0
Handling file:  file:///home/frank/Informatik/Git/FeedReader
file scheme:  file
Handling file:  file:///home/frank/Informatik/Git/nautilus-git
file scheme:  file
Number of files is 0
Number of files is 0
Number of files is 0
Number of files is 0
Number of files is 0
Handling file:  file:///home/frank/Informatik/Git/nautilus-git
file scheme:  file
Number of files is 0

The icon is stored at /usr/share/icons/hicolor/scalable/status/nautilus-git-symbolic.svg at my system.

bilelmoussaoui commented 7 years ago

@fbruetting I've added refreshing the icon cache on my latest commit in order to fix this (if it's due to that?) Have you changed your icon theme? If, so can you paste the content of the index.theme under the theme directory?

fbruetting commented 7 years ago

YES, works again, thanks!

bilelmoussaoui commented 7 years ago

Perfect, happy to hear that :)