Guqula iphepha lodonga leCinnamon ngale ndlela ilula

ICinnamon 3.2 kwiLinux Mint 18.1

Zininzi iinkqubo zokutshintsha iphepha lodonga ngokuzenzekelayo ngokungena ngakunye ngaphandle kokukhuphela loo mfanekiso. Yinkqubo elula esivumela ukuba siphucule inkangeleko yedesktop yethu.

Kodwa isicatshulwa esikuxelela namhlanje senzelwe iCinnamon kwaye sibhalwe kwiPython. Iskripthi sasimahla isivumela ukuba sifumane imifanekiso kwinkonzo ye-Imgur ukuze siyisebenzise njengephepha lodonga. Esi sikripthi sivumela bamba iphepha lodonga esilifunayo kwaye sikwazi ukuyisebenzisela nayiphi na enye injongo okanye njengephepha lodonga olusisigxina ledesktop yethu yesinamon.

Esi skripthi sisivumela ukuba sithathe nawuphina umfanekiso wephepha lodonga kwinkonzo ye-imgur

Into yokuqala ekufuneka siyenzile kukukhuphela iskripthi esiya kusenzela wonke umsebenzi. Kufuneka kwakhona sifumane igalari yemgur esifuna ukuyisebenzisa. Okokugqibela kubalulekile kuba xa ukhetha igalari yobuqu, ngenye imini umfanekiso obonakala njengephepha lodonga unokusothusa. Nje ukuba sibe nezi zinto, siqala ukumisela.

Okokuqala Khuphela iphakheji kunye neskripthi kwaye siyivula kwifolda kwinkqubo yethu. Nje ukuba ivuliwe, sivula i-terminal kule folda kwaye sibhale oku kulandelayo:

Pyckground.py --galleryId "código de la galería"

Oku kuyakutshintsha iphepha lodonga kwidesktop yethu. Ingayiyo Sifuna ukutshintsha iphepha lodonga kwiseshoni enyeEmva koko siya kubhala oku kulandelayo:

Pyckground.py --galleryId "código de la galería" --noDelete

Kwaye ukuba siyafuna khuphela umfanekiso kwigalari, emva koko kufuneka sibhale oku kulandelayo:

Pyckground.py -c /home/user/Pictures/

Oku kusebenza okwethutyana. Ngoku ukuba sifuna ukuba yenzeke ngalo lonke ixesha siqala inkqubo yokusebenza, emva koko siya kuQala iZicelo kwaye ufake ikhowudi kunye nokwenza iskripthi kunye negama legalari. Ke ngalo lonke ixesha siqala iCinnamon yethu, iphepha lodonga liya kutshintsha libonise umfanekiso omnandi okanye imifanekiso enxulumene noko sikuthandayo inomdla, akunjalo?


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo ezi-2, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   UJimmy Olano sitsho

    -Ukuze usebenzise i-IMGUR API umntu kufuneka abhalise apha: http://api.imgur.com/oauth2/addclient

    -Ukuba sineziqinisekiso zethu kufuneka sikhuphele umxhasi wePython weIMGUR ebizwa ngokuba (indlela yokuyila -sarcasm-) «imgurpython»: https://github.com/Imgur/imgurpython

    -Ukuba i-akhawunti yenziwe yasebenza (i-imeyile ithatha ixesha ukuqinisekiswa) songeza oku kulandelayo kwiPyckground.py (okwangoku kufanelekile ukuyenza):

    ukusuka imgurpython yokungenisa ImgurClient

    umthengi_id = 'ISAZISI SAKHO
    client_secret = 'IMFIHLO YAKHO

    umxhasi = ImgurClient (client_id, client_secret)

    Kwaye udibanise ugunyaziso kwimisebenzi yePyckground.py

    -Sifanele sicacise ukuba Ubuntu igcina imifanekiso yamaphephadonga ('iphepha lodonga') kule ndawo ilandelayo «~ /. .py:

    «» »
    IPyckground ikuvumela ukuba ukhuphele kwaye usete umfanekiso kwi-intanethi njenge
    imvelaphi yakho.
    «» »

    okungagqibekanga_image_folder_path = './wallpaper'

    yi

    okungagqibekanga_image_folder_path = '~ / .cache / iphepha lodonga /'

    Ndiyathemba ukuba iluncedo kuwe ukuze ukwazi ukuyiqhuba ku-Ubuntu.

  2.   Leo sitsho

    Ndingathanda ukuyekisa umsebenzisi ukutshintsha umfanekiso ongasemva kwisinamon
    Ndingenza ukuba ifayile ye-cinnamon-settings.py ingaphunyezwa kodwa ibangela iingxaki ezongezelelweyo
    Ndiqinisekile ukuba useto lugcinwe kwenye indawo, ke ukuba ndingenza ukuba loo fayile ifundeke kuphela umsebenzisi akanakukwazi ukuwutshintsha umfanekiso. Umbuzo uthi iphi le fayile?