Skip to content

Commit

Permalink
The boolean values written to the .desktop file must be lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
rvelhote committed Apr 14, 2017
1 parent b5ddf0c commit d1b3a44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion indicator-bitcoin.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Categories=System
Comment=A Bitcoin price indicator for Ubuntu based on most up-to-date price on Bitstamp
Exec=/usr/share/indicator-bitcoin/indicator-bitcoin
Hidden=False
Hidden=false
Icon=/usr/share/indicator-bitcoin/bitcoin.png
Name=Bitcoin indicator
StartupNotify=false
Expand Down
13 changes: 8 additions & 5 deletions interface/menu_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,22 @@ def get_xdg_file():
return desktop.DesktopEntry(autostart_file), autostart_file

@staticmethod
def set_autostart(item, data=None):
def set_autostart(item):
"""
:param item:
:param data:
Toggle event for the autostart option that belongs to the indicator menu
:param item: The item that was toggled
:return:
"""
dfile, path = MenuItemAutostart.get_xdg_file()

if dfile is None:
return

dfile.set("X-GNOME-Autostart-enabled", item.get_active())
value = "false"
if item.get_active():
value = "true"

dfile.set("X-GNOME-Autostart-enabled", value)
dfile.write(filename=path)

@staticmethod
Expand Down

0 comments on commit d1b3a44

Please sign in to comment.