Giter VIP home page Giter VIP logo

Comments (6)

coldfix avatar coldfix commented on June 3, 2024

Hey,

thanks for your report. Can you start udiskie from a terminal like so:

udiskie -vt

and show me the output. Maybe there are hints as to why this doesn't work for you.

Best regards,
Thomas

from udiskie.

fenrrir avatar fenrrir commented on June 3, 2024
rodrigo@asgard:~$ udiskie -vt
DEBUG [2014-12-08 16:26:03,582] udiskie.config: Failed to read config file: [Errno 2] No such file or directory: '/home/rodrigo/.config/udiskie/config.yml'
DEBUG [2014-12-08 16:26:03,584] udiskie.config: Failed to read config file: [Errno 2] No such file or directory: '/home/rodrigo/.config/udiskie/config.json'
WARNING [2014-12-08 16:26:03,664] udiskie.cli: Failed to connect UDisks1 dbus service..
Falling back to UDisks2 [experimental].
DEBUG [2014-12-08 16:26:03,754] udiskie.config: IgnoreDevice(match={'is_block': False}, value=True) created
DEBUG [2014-12-08 16:26:03,754] udiskie.config: IgnoreDevice(match={'is_external': False}, value=True) created
DEBUG [2014-12-08 16:26:03,754] udiskie.config: IgnoreDevice(match={'is_ignored': True}, value=True) created
...
DEBUG [2014-12-08 16:26:03,786] udiskie.config: IgnoreDevice(match={'is_external': False}, value=True) used for ...
...

EDIT (by coldfix): added code guards and removed long list of ignored devices

from udiskie.

coldfix avatar coldfix commented on June 3, 2024

Hey. The output does not show any failures. Fortunately, I have an ubuntu 14.04 VM which allowed me to track the issue.

The problem seems to be a general issue which affects most applications on ubuntu. As far as I understand, canonical basically disabled the systray for all applications by default.

The suggestion in HOW TO ENABLE SYSTRAY APPS IN UBUNTU 14.04 OR 14.10 worked for me:

sudo add-apt-repository ppa:gurqn/systray-trusty
sudo apt-get update
sudo apt-get upgrade
# now restart

I don't know, if I can recommend the method, since it means adding non-standard repository to your package manager, which may in the extreme case endanger your system. Maybe you can also find something useful in this stackoverflow thread or somewhere else on the web.

Hope this helps.

Best regards,
Thomas

from udiskie.

fenrrir avatar fenrrir commented on June 3, 2024

Hi Thomas,

Thanks for your help. I have search about this problem before open this issue. The best solution for this case maybe support app indicators (unity/ubuntu) on diskie. Two years ago i have started a pet project similiar to udiskie (https://github.com/fenrrir/bdin). Recently ubuntu drops udisks(1) and migrate to udisks2 then my project breaks. Searching for python and udisks2 I found your project. Udiskie is awesome and much better that bdin. Now, i'm in doubt, port bdin to udisks2 or add support to appindicators in udiskie. Do you have interest?

Best regards,

Rodrigo Araújo

from udiskie.

coldfix avatar coldfix commented on June 3, 2024

Hey, in principle I have nothing against an appindicators backend for the udiskie status icon. But you'd have to maintain it, since I'm not using ubuntu.

It should be quite easy to modify the TrayIcon (and AutoTray) classes to optionally use the gi.repository.AppIndicator3.Indicator (or a lightweight wrapper thereof) instead of gi.repository.Gtk.StatusIcon.

That being said, I will probably rewrite some of that code soon:

  • to clean up the messy tray icon code
  • to make all UI and IO operations asynchronous, so that the UI does not block and there will be less race conditions
  • GTK3 has deprecated icons in menu (much to my annoyment). Not sure yet, how I will handle this.

from udiskie.

coldfix avatar coldfix commented on June 3, 2024

Hey,

don't know if you are still interested but I finally decided to implement this feature. However, it has to be requested explicitly. In order to use appindicators, you have to start udiskie as

udiskie -t --appindicators

Since I won't be actively checking udiskie on ubuntu it is likely that this may break at some point. In case there are any problems, error reports are always welcome.

Thomas

from udiskie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.