"GTG starts after login" doesn't work with an invalid link

Bug #1073607 reported by Izidor Matušov on 2012-10-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
Low
Izidor Matušov

Bug Description

Steps to reproduce the bug:

1, Create an invalid link for gtg after startup:

cd ~/.config/autostart/
unlink gtg.desktop
ln -s /non-existing gtg.desktop

2, Start GTG with command ./gtg (not ./scripts/debug.sh which updates the local tmp)
3, GTG tells you (correctly) that GTG doesn't start after login
4, Changing that results in a traceback:

Traceback (most recent call last):
  File "/home/izidor/projects/gtg/autostart-problem/GTG/gtk/preferences.py", line 144, in on_autostart_toggled
    enable_gtg_autostart()
  File "/home/izidor/projects/gtg/autostart-problem/GTG/gtk/preferences.py", line 59, in enable_gtg_autostart
    os.symlink(desktop_file_path, AUTOSTART_PATH)
OSError: [Errno 17] File exists

It is a very rare case but happened to a friend...

Related branches

Izidor Matušov (izidor) wrote :

You can get in this situation when you use GTG firstly in /usr/local/share and you create a link for it. Then you install GTG from another source into /usr/share and get rid of the older version.

Izidor Matušov (izidor) on 2012-11-16
Changed in gtg:
status: In Progress → Fix Committed
Nimit Shah (nimit-svnit) on 2013-11-25
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers