Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539638 - x11-misc/gdevilspie-0.5 - gdevilspie: AttributeError: 'module' object has no attribute 'xdg_config_home'
Summary: x11-misc/gdevilspie-0.5 - gdevilspie: AttributeError: 'module' object has no ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard: Pending removal: 2015-04-22
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2015-02-10 15:57 UTC by Pacho Ramos
Modified: 2015-04-26 12:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix the gdevilspie bug (gdevilspie_patch.diff,1.85 KB, patch)
2015-04-19 02:04 UTC, Agustin Ferrari
Details | Diff
gdevilspie-0.5-r1.ebuild (gdevilspie-0.5.ebuild,819 bytes, text/plain)
2015-04-21 18:16 UTC, Pacho Ramos
Details
Updated patch (gdevilspie_patch.diff,4.23 KB, patch)
2015-04-26 09:57 UTC, Agustin Ferrari
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2015-02-10 15:57:38 UTC
$ gdevilspie 
Traceback (most recent call last):
  File "/usr/bin/gdevilspie", line 893, in <module>
    MainWindow = RulesListWindow()
  File "/usr/bin/gdevilspie", line 374, in __init__
    self.UpdateAutostartStatus()
  File "/usr/bin/gdevilspie", line 545, in UpdateAutostartStatus
    if (os.path.exists(xdg.DesktopEntry.xdg_config_home + "/autostart/devilspie.desktop")):
AttributeError: 'module' object has no attribute 'xdg_config_home'
Comment 1 Pacho Ramos gentoo-dev 2015-02-10 15:58:05 UTC
And looks like it was already dropped from Debian and Fedora due to this issue :/
Comment 2 Agustin Ferrari 2015-04-19 02:04:50 UTC
Created attachment 401576 [details, diff]
Patch to fix the gdevilspie bug

For what it's worth, this attachment is a patch to fix the bug and run the program.
Anyway I no longer use (g)devilspie and I replaced it with devilspie2[1], which although does not have GUI, at least is best documented[2] (which allows to make scripts more easily).
----
[1]: https://packages.gentoo.org/package/x11-misc/devilspie2
[2]: http://git.savannah.gnu.org/cgit/devilspie2.git/plain/README
Comment 3 Agustin Ferrari 2015-04-19 02:09:15 UTC
For what it's worth, the attachment is a patch to fix the bug and run the program.
Anyway I no longer use (g)devilspie and I replaced it with devilspie2[1], which although does not have GUI, at least is best documented[2] (which allows to make scripts more easily).
----
[1]: https://packages.gentoo.org/package/x11-misc/devilspie2
[2]: http://git.savannah.gnu.org/cgit/devilspie2.git/plain/README
Comment 4 Tiago Sousa 2015-04-20 10:09:44 UTC
I used gdevilspie back in january when I set up a new computer, and I remember it didn't run due to this error, but I got it working with some hack I found online. Unfortunately I don't remember what I did, so I'm sorry I don't have any useful info to add, but IMO it's still a useful software and if Agustin's patch works, please keep this in the tree.
Comment 5 Pacho Ramos gentoo-dev 2015-04-21 18:16:06 UTC
Created attachment 401754 [details]
gdevilspie-0.5-r1.ebuild

I have tried to port it to the new eclasses (distutils-r1.eclass) but it still doesn't work. It now fails showing a window with "Glade file not found, exiting" error
Comment 6 Agustin Ferrari 2015-04-26 09:57:30 UTC
Created attachment 402026 [details, diff]
Updated patch

(In reply to Pacho Ramos from comment #5)
> Created attachment 401754 [details]
> gdevilspie-0.5-r1.ebuild
> 
> I have tried to port it to the new eclasses (distutils-r1.eclass) but it
> still doesn't work. It now fails showing a window with "Glade file not
> found, exiting" error
I was doing some tests with your ebuild, the error is because that the program tries to find the gdevilspie.glade file in /usr/lib/python-exec/python2.7/ and /usr/lib/python-exec/share/gdevilspie/ being that is located in /usr/share/gdevilspie/gdevilspie.glade (at least in my case).
Thus far I discovered two ways to solve this problem:
* Running `mv /usr/lib/python-exec/python2.7/gdevilspie /usr/bin/gdevilspie` in a root console.
* Otherwise attached to this message I leave a new version of the patch so that gdevilspie can find gdevilspie.glade and gdevilspie.png using the PATH variable system.
With either of these two solutions gdevilspie should be able to function normally.
Comment 7 Pacho Ramos gentoo-dev 2015-04-26 12:23:18 UTC
+*gdevilspie-0.5-r1 (26 Apr 2015)
+
+  26 Apr 2015; Pacho Ramos <pacho@gentoo.org> +files/gdevilspie-0.5-paths.patch,
+  +gdevilspie-0.5-r1.ebuild, -gdevilspie-0.5.ebuild:
+  Fix bug #539638, thanks a lot to Agustin Ferrari
+

Thanks a lot

If you are willing to proxy maintain this please let me know ;)
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers