Code Monkey home page Code Monkey logo

gahshomar's Introduction

Gahshomar (گاه‌شمار) Build Status

A Persian (Jalali/Farsi) calendar. The calendar provides a main interface for easily converting dates between Iranian and Gregorian calendar. Also, an appindicator and a Gnome-shell extension is provided to keep track of the date in the Iranian calendar system.

Screenshot

Gnome Unity

Feaures

A main interface useful for converting dates between calendars.

Several front-ends for displaying the current date on your desktop:

  • A Gnome Shell extension (Must be activated after installation in Gnome tweak tool).
  • An Appindicator icon to be used in enviornments like Unity or KDE (Must be activated after installation in preferences of Gahshomar).
  • A Systray icon to be used in enviornments like XFCE or Mate (Must be activated after installation in preferences of Gahshomar).

Installation

See the Wiki

Support or Contact

Having troubles? Fill an issue.

gahshomar's People

Contributors

183amir avatar nik-kashi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gahshomar's Issues

Gahshomar dos't show in elementary os

hi
Installed gahshomar from ppa.
icon is in slingshot.
After run gahshomar in terminal:

:~$ gahshomar 
(process:2965): GLib-WARNING **: /build/buildd/glib2.0-2.42.2/./glib/goption.c:2254: ignoring invalid short option '\xa0' (-96) in entry (null):quit

** (gahshomar:2965): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-J55pvvlxwp: Connection refused
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 2135, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/gahshomar/plugins/main/main.py", line 6, in <module>
    from gi.repository import GObject, Peas, Gtk, Gio, GLib, Gdk
  File "/usr/lib/python3/dist-packages/gi/importer.py", line 53, in find_module
    'introspection typelib not found' % namespace)
ImportError: cannot import name Peas, introspection typelib not found

(gahshomar:2965): libpeas-WARNING **: Error loading plugin 'main'

(gahshomar:2965): Gtk-CRITICAL **: gtk_window_present_with_time: assertion 'GTK_IS_WINDOW (window)' failed

Replacing khayyam3 with khayyam

Hi Amir,

@pylover has updated his Python package, https://pypi.python.org/pypi/Khayyam, to be compatible with Python 3 and also has updated the license to GPL v3.

pylover and I are creating Deb package of khayyam to be included in Debian Testing and if succeed, soon we will see that in Ubuntu repositories. And I would be able to package your software for Debian because then it would depend on a Debian package not a package outside of Debian repositories.

Now, you would prefer to use Khayyam in your software or you wanna maintain your fork, khayyam3?

Cannot run the app on Kubuntu 17.04

I successfully installed Gahshomar 4.4.1 from source code on my Kubuntu 17.04 64-bit. But I cannot run it.

Running the app from terminal gives the following error:

➜  ~  gahshomar                  

(process:29520): GLib-WARNING **: ../../../../glib/goption.c:2393: ignoring no-arg, optional-arg or filename flags (21936) on option of arg-type 0 in entry (null):quit
/usr/local/lib/gahshomar/plugins/main/main.py:7: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Peas, Gtk, Gio, GLib, Gdk
Traceback (most recent call last):
  File "/usr/local/lib/gahshomar/plugins/main/main.py", line 54, in do_activate
    from gahshomar.window import Window
ImportError: No module named 'gahshomar'

(gahshomar:29520): Gtk-CRITICAL **: gtk_window_present_with_time: assertion 'GTK_IS_WINDOW (window)' failed

Enable at startup does not work in Lubuntu 14.04

WARNING:gahshomar.settings_page:
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/gahshomar/settings_page.py", line 49, in on_StartupSwitch_notify_active
    with open(AUTOSTART_DESKTOPFILE_PATH, 'w') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.config/autostart/gahshomar.desktop'

پیشنهاد توسعه

سلام پیشنهادی دارم برای افزودن قابلیت نمایش رویداد به برنامه ای که توسعه دادید

الان که همه ی سیستم ها به اینترنت متصل هستند پیشنهاد میکنم ارتباط با ای پی آي های تقویم رو هم در این سورس خوب پیاده سازی کنید
خودم از این سرویس زیاد استفاده میکنم


وب سرویس تقویم فارسی

اطلاعات خوبی ارائه میده مثل وقایع و مناسبت های هر روز و دریافت رویداد در حالت شمسی و قمری و میلادی

help for use

سلام
خوب بود راهنما هم برای اجرا می گذاشتید هر چند شاید بدیهی باشه به نظرتون

Non-standard usage of color for status icon's text

Hi,
I have difficulty reading the date from the status icon, it uses the "selected (pressed) button's background color" as "button's text color".

Maybe you didn't notice it because of your color theme, i.e. the specific combination of colors in your theme made it readable, and even was more pleasing than using the actual "button's text color".

Please correct it so I can easily read the thing. Thanks.

provide packages for ubuntu 16.04

hi
i have problem in ubuntu 16.04 and get this error

(process:9436): GLib-WARNING **: /build/glib2.0-t9oPgV/glib2.0-2.48.0/./glib/goption.c:2367: ignoring invalid short option '\xc0' (-64) in entry (null):quit
/usr/lib/gahshomar/plugins/main/main.py:7: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import GObject, Peas, Gtk, Gio, GLib, Gdk
Traceback (most recent call last):
File "/usr/lib/gahshomar/plugins/main/main.py", line 54, in do_activate
from gahshomar.window import Window
ImportError: No module named 'gahshomar'

(gahshomar:9436): Gtk-CRITICAL **: gtk_window_present_with_time: assertion 'GTK_IS_WINDOW (window)' failed

how can fix this issue?

flatpak version deps are end of life

when installing from flatpak (a very good way to distribute and thank you for using it) the app uses gnome38 runtime/org.gnome.Platform/x86_64/3.38 and which is end of life and it takes end of life deps from repos.
like:
Info: runtime org.freedesktop.Platform.GL.default branch 20.08 is end-of-life, with reason:

can you update those?

ghohshomar in login page(before login)

پیشنهاد می کنم برای صفحه ورود هم فکری بشه تا قبل از ورود هم بشه تقویم شمسی رو داشت.
الان دیگه ویندوز هم داره

Installation Error: No package 'libpeas-1.0' found

I tried to install v4.4.1. I got the source code from github (clone --depth 1). I think I have all the dependencies. First error I received was:

./autogen.sh 
/usr/bin/gnome-autogen.sh
***Warning*** PKG_NAME is deprecated, you may remove it from autogen.sh
checking for automake >= 1.11.2...
  testing automake... found 1.15
checking for autoreconf >= 2.53...
  testing autoreconf... found 2.69
checking for glib-gettext >= 2.2.0...
  testing glib-gettextize... found 2.52.0
checking for intltool >= 0.25...
  testing intltoolize... found 0.51.0
checking for pkg-config >= 0.14.0...
  testing pkg-config... found 0.29.1
Checking for required M4 macros...
  yelp.m4 not found
***Error***: some autoconf macros required to build org.gahshomar.Gahshomar
  were not found in your aclocal path, or some forbidden
  macros were found.  Perhaps you need to adjust your
  ACLOCAL_PATH?

I solved it by installing yelp-tools (so I think this needs to be added to the list of dependencies)

But still get the following error (just pasting last few lines):

checking for GAHSHOMAR... no
configure: error: Package requirements (gtk+-3.0 >= 3.10.0, glib-2.0 >= 2.34, libpeas-1.0, libpeas-gtk-1.0) were not met:

No package 'libpeas-1.0' found
No package 'libpeas-gtk-1.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GAHSHOMAR_CFLAGS
and GAHSHOMAR_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

This is while I have libpeas installed on my system:

dpkg -l | grep libpeas
ii  libpeas-1.0-0:amd64       1.20.0-1     amd64     Application plugin library
ii  libpeas-common            1.20.0-1     all       Application plugin library (common files)

What am I doing wrong?

برنامه تو پس زمینه اجرا میشه

سلام این برنامه روی پس زمینه اجرا میشه من با این موضوع مشکل دارم چون این جور برنامه ها در نهایت سرعت کار رایانه رو پایین میارن لطفا یک گزینه برای اجرا در پس زمینه رو قرار بدین و بذارین خودمون انتخاب کنیم که این برنامه روی پس زمینه اجرا بشه یا نه ممنونم

[Xfce] Gahshomar systray disappears

Even after adding gahshomar manually to the Xfce panel, after restarting the machine gahshomar icon disappears from systray and you will need to start it manually each time or add it to startup items while this will not solve the problem in the end.

The help does not show in Lubuntu 14.04

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/gahshomar/__init__.py", line 61, in wrapped
    retval = fn(*v, **k)
  File "/usr/lib/x86_64-linux-gnu/gahshomar/plugins/main/main.py", line 99, in help
    Gtk.show_uri(None, "help:gahshomar", Gdk.CURRENT_TIME)
gi._glib.GError: The specified location is not supported

AUR Build

It would be great if you could update PKGBUILD file on the Arch Linux User Repository, to support version 5 of this software.
Thanks!

Problem with icon

Hi, I have installed persian-calendar, but I can't see the icon on Unity panel. There is only a text that shows date. I'm using Ubuntu 14.04, I have installed version 4.4.0 from ppa.

Application does not run under Ubuntu 18 with XFCE 4 desktop

I'm using manual method in Ubuntu 18:bionic beaver with xfce4 deskop.
Launching Gahshomar from app launcher does not bring up the program (or any process/daemon). Launching the binary from terminal throws these:

/usr/bin$ sudo ./gahshomar 

(process:5967): GLib-WARNING **: 21:44:34.235: ../../../../glib/goption.c:2376: ignoring invalid short option '\xc0' (-64) in entry (null):quit

(process:5967): GLib-WARNING **: 21:44:34.236: ../../../../glib/goption.c:2393: ignoring no-arg, optional-arg or filename flags (21872) on option of arg-type 0 in entry (null):quit

(gahshomar:5967): libpeas-CRITICAL **: 21:44:34.388: peas_engine_load_plugin: assertion 'info != NULL' failed

(gahshomar:5967): Gtk-CRITICAL **: 21:44:34.388: gtk_window_present_with_time: assertion 'GTK_IS_WINDOW (window)' failed

For installation, I've used sudo ./configure --prefix=/usr and sudo make then sudo make install.
I also had to manually install other dependencies like libpeas-dev and libjalali-dev and some other packages when autotools complained they are missing.

Thanks for your help :)

Not working on Gnome 3.36

Gahshomar stops working on Gnome 3.36.

My system is Ubuntu 20.04 and Gnome 3.36, the extension does not work at all.

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.