Announcement

Collapse
No announcement yet.

Temporary solution for the lack of dropbox icon in the system tray

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Temporary solution for the lack of dropbox icon in the system tray

    I am trying to imagine a possible temporary solution for the problem of lack of dropbox icon in the system tray in Plasma 5 and would like to get some more ideas easy to implement before spending time actually programming.

    My first thought was: develop a simple python GUI showing the status of dropbox using the command "dropbox status". Then, change the windows behaviour in such way to make it behave like a widget.

    Does anybody have a better idea?
    Kubuntu 15.10 - Asus All-in-one (i3, 4GB ram)

    #2
    The code for the Python GUI would be something like this:

    Code:
    import subprocess
    import Tkinter as tk
    
    counter = 0 
    def update(label):
      def up():
        label.config(text=str(subprocess.check_output(["dropbox", "status"])))
        label.after(1000, up)
      up()
     
    root = tk.Tk()
    root.title("Dropbox")
    label = tk.Label(root,)
    label.pack()
    update(label)
    root.mainloop()
    Last edited by trintadosete; May 28, 2015, 12:08 PM.
    Kubuntu 15.10 - Asus All-in-one (i3, 4GB ram)

    Comment


      #3
      Originally posted by trintadosete View Post
      Sorry, but I dont know how to indent the code properly in the forum...
      Highlight the code part and click the # formatting button.

      Please Read Me

      Comment


        #4
        Or type a [code] tag at the beginning of the code section and a [/code] tag at the end. Leading spaces and carriage returns are honored as typed within a [code][/code] block.

        I edited your post to include these tags.

        Comment


          #5
          Thank you all!
          Kubuntu 15.10 - Asus All-in-one (i3, 4GB ram)

          Comment

          Working...
          X