Bug 4493 - tl-desktop-activate fails on RHEL 6 when adding applications to the desktop
Summary: tl-desktop-activate fails on RHEL 6 when adding applications to the desktop
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: TLDC (Desktop Customizer) (show other bugs)
Version: 4.0.0
Hardware: PC Linux Red Hat
: P2 Normal
Target Milestone: 4.1.1
Assignee: Karl Mikaelsson
URL:
Keywords: astrand_tester, prosaic
Depends on:
Blocks:
 
Reported: 2012-11-29 16:23 CET by Aaron Sowry
Modified: 2020-09-28 15:43 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Aaron Sowry cendio 2012-11-29 16:23:00 CET
My guess is that RHEL6's pygtk is not recent enough to support creating trusted desktop files. Traceback:
---
Running /opt/thinlinc/etc/xstartup.d/35-tl-desktop-activate.sh
Traceback (most recent call last):
  File "/opt/thinlinc/bin/tl-desktop-builder", line 64, in <module>
    write_desktop_apps ( oO0o0oO0o , oo )
  File "/opt/thinlinc/modules/thinlinc/tl_desktop/apps.py", line 250, in write_desktop_apps
    o000o0o00o0Oo . write ( filename = os . path . join ( OOoo0O , "ThinLinc-%s" % OOoo0O0 ) , trusted = True )
TypeError: write() got an unexpected keyword argument 'trusted'


[root@dhcp-3 .thinlinc]# yum info pyxdg
Loaded plugins: refresh-packagekit, rhnplugin
Installed Packages
Name        : pyxdg
Arch        : noarch
Version     : 0.18
Release     : 1.el6
Size        : 299 k
Repo        : installed
From repo   : anaconda-RedHatEnterpriseLinux-201009221801.x86_64
Summary     : Python library to access freedesktop.org standards
URL         : http://freedesktop.org/Software/pyxdg
License     : LGPLv2
Description : PyXDG is a python library to access freedesktop.org standards
Comment 1 Aaron Sowry cendio 2012-11-29 16:25:15 CET
>My guess is that RHEL6's pygtk

pyxdg, not pygtk
Comment 2 Karl Mikaelsson cendio 2012-12-07 09:48:15 CET
Somewhat related to https://www.cendio.com/bugzilla/show_bug.cgi?id=4245

(didn't we have a metabug for all of these issues?)
Comment 3 Peter Åstrand cendio 2013-07-03 10:03:16 CEST
Happened on SLED11SP2. Solved by removing packages:

python-xdg-0.16-2.17 sabayon-2.28.1-0.2.107.i586 sabayon-lang-2.28.1-0.2.107.i586 sabayon-admin-2.28.1-0.2.107.i586
Comment 4 Karl Mikaelsson cendio 2013-08-21 18:10:49 CEST
Moved pyxdg into the thinlinc namespace and adjusted our usage of pyxdg to make sure it's our own version we use.

Commits: 27790, 27791, 27792, 27793, 27794.
Comment 5 Karl Mikaelsson cendio 2013-08-23 10:52:52 CEST
Tested with a nightly build, works fine now.
Comment 6 Peter Åstrand cendio 2013-10-21 13:17:33 CEST
Works on RHEL6 both with and without python-xdg/sabayon.

Note You need to log in before you can comment on or make changes to this bug.