| Summary: | mageiawelcome fails to load on login | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Jim Beard <jim.beard> |
| Component: | RPM Packages | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | marja11, napcok, yvesbrungard |
| Version: | 6 | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | mageiawelcome-1.13-1.mga6 | CVE: | |
| Status comment: | |||
|
Marja Van Waes
2017-08-06 12:02:54 CEST
Assignee:
bugsquad =>
mageiatools Thanks for the report. What is you Desktop environment? Can you give the output of: echo $DESKTOP_SESSION XDG_CURRENT_DESKTOP=GNOME [jim@sorrel ~]$ echo $DESKTOP_SESSION [jim@sorrel ~]$ Thanks Jim. And which DM do you use? GDM? [jim@sorrel ~]$ cat .desktop DISPLAYMANAGER=gdm DESKTOP=GNOME [jim@sorrel ~]$ Is there a command to verify which desktop is running? commit 096701893d70a9e75cb9839ad37ad50a55f68f2f
Author: Papoteur <papoteur@...>
Date: Thu Aug 10 13:56:07 2017 +0200
ignore DESKTOP_SESSION when it is void (mga#21454)
---
Commit Link:
http://gitweb.mageia.org/software/mageiawelcome/commit/?id=096701893d70a9e75cb9839ad37ad50a55f68f2f
Hello Jim Can you test this new version? Get mageiawelcome.py from git http://gitweb.mageia.org/software/mageiawelcome/plain/usr/share/mageiawelcome/mageiawelcome.py?id=096701893d70a9e75cb9839ad37ad50a55f68f2f copy it as root in /usr/share/mageiawelcome/ Launch mageiawelcome If OK, I will push this in a new release. That did not seem to do it.
[jim@sorrel ~]$ ls -l /usr/share/mageiawelcome/mageiawelcome.py
-rw-r--r-- 1 root root 9830 Aug 10 10:49 /usr/share/mageiawelcome/mageiawelcome.py
[jim@machine ~]$ /usr/bin/mageiawelcome
Traceback (most recent call last):
File "/usr/share/mageiawelcome/mageiawelcome.py", line 252, in <module>
my_quit_wrapper(main)()
File "/usr/share/mageiawelcome/mageiawelcome.py", line 243, in fun2
x = fun(*args, **kwargs) # equivalent to "apply"
File "/usr/share/mageiawelcome/mageiawelcome.py", line 54, in main
desktop = get_desktop_name(os.path.basename(os.getenv("DESKTOP_SESSION")))
File "/usr/lib64/python3.5/posixpath.py", line 139, in basename
i = p.rfind(sep) + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
Hello, I can't reproduce the problem. I configured a virtualbox machine with GDM, started GNOME, GNOME on Xorg, Gnome Classic, but never got the error. In the same time, .desktop continue to contain: DESKTOP=Plasma This part is very mysterious. I will commit a change to catch any error. Papoteur commit 4c2474ddc50674e1e08bc0d798e71cf39e4834f0
Author: Papoteur <papoteur@...>
Date: Sat Aug 12 10:23:36 2017 +0200
better management of DESKTOP_SESSION (mga#21454)
use XDG_CURRENT_DESKTOP instead of reporting "unknown"
---
Commit Link:
http://gitweb.mageia.org/software/mageiawelcome/commit/?id=4c2474ddc50674e1e08bc0d798e71cf39e4834f0
@Jim, Do you mean to be able to test this new version? I am not familiar with gitweb, and following the link above did not lead me to something I could easily understand or act on. What do you wish me to do? Did you intend I copy and run the new script cited? Or make the modifications using an editor or some other method? Here is the link to get mageiawelcome.py http://gitweb.mageia.org/software/mageiawelcome/tree/usr/share/mageiawelcome/mageiawelcome.py?id=4c2474ddc50674e1e08bc0d798e71cf39e4834f0 As previously, you can replace it as root in /usr/share/mageiawelcome/ It looks like that did it. I replaced /usr/share/mageiawelcome/mageiawelcome.py with the script I found in Comment 12, and ran the command mageiawelcome. [jim@machine ~]$ mageiawelcome ATTENTION: default value of option vblank_mode overridden by environment. ATTENTION: default value of option vblank_mode overridden by environment. NOT SANDBOXED >>> "close" [jim@machine ~]$ Thank you! The fix has been published before 6.1 release. Status:
NEW =>
RESOLVED |
Description of problem: Mageiawelcome fails to load on login Version-Release number of selected component (if applicable): mageiawelcome-1.13-1.mga6 How reproducible: login, or run manually Steps to Reproduce: 1. run mageiawelcome on the command line $ mageiawelcome Traceback (most recent call last): File "/usr/share/mageiawelcome/mageiawelcome.py", line 251, in <module> my_quit_wrapper(main)() File "/usr/share/mageiawelcome/mageiawelcome.py", line 242, in fun2 x = fun(*args, **kwargs) # equivalent to "apply" File "/usr/share/mageiawelcome/mageiawelcome.py", line 55, in main desktop = get_desktop_name(os.path.basename(os.getenv("DESKTOP_SESSION"))) File "/usr/lib64/python3.5/posixpath.py", line 139, in basename i = p.rfind(sep) + 1 AttributeError: 'NoneType' object has no attribute 'rfind'