Des lanceurs d'app X11 pour MacOSX

X11 logo

MacOSX reposant sur une base UNIX (et même certifié véritable UNIX depuis Leopard), il est tout à fait possible de lancer des applications X11 provenant du monde Linux ou d'ailleurs (merci MacPorts ). Seulement, ces applications si puissantes soient-elles, leur principal inconvénient est qu'elle doivent être lancées en ligne de commande, et avec xterm  par dessus-le marché...

Pas très intuitif pour un système orienté utilisateur comme MacOSX ! Heureusement, des initiatives intelligentes comme Platypus  nous rendent la vie plus facile...

Le chaînon manquant

Platypus est une application Cocoa permettant de créer des applications MacOSX natives à partir de simple scripts Shell, Perl, PHP, AppleScript et j'en passe. Il est donc très facile par exemple de créer des installeurs simples, sans avoir à déployer un .pkg.

Mais qui dit script dit que l'on peut avoir les mains totalement déliées pour lancer ce que l'on veut ! Ça tombe bien puisque je viens de compiler Dia  (logiciel de modélisation UML ) via MacPorts et que ça m'agace de devoir le lancer depuis la ligne de commande ! Oui, je tiens à mon démarrage avec QuickSilver :-P !

Créer son application

Il faut bien sûr commencer par télécharger et installer Platypus  (un petit coup d'oeil à la doc  ne fait pas de mal non plus).

Voici ce qu'on trouve lorsqu'on le lance pour la première fois :

Le principe est assez simple : On donne un nom à l'application, on glisse un belle icône et on crée/sélectionne un script à lancer. Plusieurs types d'affichages sont possibles comme la barre de progression ou le droplet. Il est également possible d'ajouter d'autres fichiers/scripts auxquels vous pourrez faire référence dans votre script principal.

Une fois que tout est OK, on clique sur Create et hop ! Une application gratuite !

X11 et les ennuis commencent

Et oui car ça aurait été trop facile sinon ! Dia, comme la plupart des applications graphiques proposées par MacPorts, est une application X11; il faut donc que l'environnement X11 soit lancé via X11.app (dans /Applications/Utilities).

Comment faire ?

Grâce à la commande open bien sûr ! Cette commande générique permet d'ouvrir à peu près n'importe quoi (fichier, URL, application... Voir la manpage de la commande open ). L'idée est donc d'ouvrir X11.app et de lui passer la commande à exécuter :

#!/bin/sh
 
source ~/.profile; # Intialisation de l'environnement pour l'utilisateur courant
open -a /Applications/Utilities/X11.app /opt/local/bin/dia; # Lancement du programme via X11

Simple et efficace. Ce script est bien sûr celui qui va servir à piloter notre application Platypus

"

Et si je veux passer des options à ma commande ? Car je voudrais lancer Dia avec l'option --integrated pour que tout s'affiche dans une seule fenêtre.

"

C'est là où les choses se corsent un peu car open ne permet pas de passer d'options à la commande embarquée. Il va donc falloir ruser un peu en créant un deuxième script Shell, launcher.sh que l'on ajoutera à l'application.

launcher.sh

#!/bin/sh
 
# Ligne de commande à exécuter
# Ajoutez toutes les options que vous voulez :)
/opt/local/bin/dia --integrated &

Et notre script principal devient :

#!/bin/sh
 
source ~/.profile; # Intialisation de l'environnement pour l'utilisateur courant
 
# Lancement du programme via X11
# par l'intermédiaire du script launcher.sh
# Le CWD par défaut est le répertoire Resources de l'application
# où se trouve les éléments ajoutés via Platypus
open -a /Applications/Utilities/X11.app launcher.sh;

Ecran complet de Platypus :

Le résultat final est l'application DiaLauncher que vous pouvez télécharger ici .

Cela fonctionne bien sûr pour n'importe quelle application du même genre (avec ou sans X11), comme JMeter  (télécharger le lanceur pour JMeter ). Il est même possible de pousser le vice jusqu'à lancer des applications en X11 forwarding  (si si, j'ai essayé et ça marche parfaitement !).

Vous trouverez sur cette page dédiée une liste de lanceurs  que je vais maintenir, au cas où ;-).


Commentaires

Nice (par expert assistance service)

This is really great work. Thank you for sharing such a good and useful information here in the blog for students.


Ez Assignment writing help (par Ez Assignment writing help)

Your X11 development style is amazing i want to share this site with my student for the gernal knowledge.


WriteCheapEssay (par WriteCheapEssay)

We are appriciate of this X11 development work i hope you will be more develop on this app.


Engineering (par Top Engineering college in Chandigarh)

Engineering as a subject combines mathematics, logic and science to find solutions to our daily life problems. Over the last few decades, engineering as a profession has seen vast expansion.


You did really (par Engineering college in punjab)

You did really good work. I really appreciate your new and different post. Please guys keep it up and share with us some unique post in the future…


pokemesh ios download (par pokemesh ios download)

Download the latest version of PokeMesh APK download file easy and fast.


Bmi calculator (par Bmi calculator)

Thanks for sharing information, good advise


whatsapp plus (par whatsapp plus )

WhatsApp app is officially available for all devices and to open for PC/Laptop etc.


Nice post (par System Integration service providers)

Nice post . keep up the good work!


This blog (par Apple service center Kolkata)

This blog has got lots of really helpful information on it! Cheers for sharing it with me!


followers (par EasyFreeFollowers.com)

The followers are real not fake.


joe (par psoriasis)

C'est vraiment une grande lecture pour moi. Je l'ai bookmarked et j'attends impatiemment de lire de nouveaux articles. Continuez votre bon travail !.


bop (par eyebrow threading)

J'ai trouvé votre ce post tout en recherchant des informations sur la recherche liée au blog ... C'est un bon message .. conservez postage et mise à jour des informations.


anna (par scalp psoriasis)

Je pense que c'est un poste informatif et il est très utile et bien informé. Je tiens donc à vous remercier des efforts que vous avez faits pour rédiger cet article.


kate (par plaque psoriasis)

Excellente article écrit, si tous les blogueurs ont offert le même niveau de contenu que vous, l'Internet serait un endroit beaucoup mieux.


192.168.1.1 (par Login to )

This is really useful and working for me. I'll share it. Thx


ip (par 192.168.1.1)

The program is really very useful


academic writing service (par academic writing service)

Good way of telling, good post to take facts regarding my presentation subject matter, which i am going to deliver in my college.


Caseism.com (par Caseism.com)

I am certain this post has offered me some assistance with saving numerous hours of perusing other related presents just on find what I was searching for. Much obliged!


Finance Assignment Help (par Finance Assignment Help)

I am certain this post has offered me some assistance with saving numerous hours of perusing other related presents just on find what I was searching for. Much obliged!


Do My Civil Engineering Assignments (par Do My Civil Engineering Assignments)

I am exceptionally satisfied to see this article, thank you for sharing. I trust next the truth will surface eventually better. <a href="https://www.civilengineeringaid.com/">Do My Civil Engineering Assignments</a>


ColdFusion Assignment Help (par ColdFusion Assignment Help)

It is a well-maintained site where people can learn about various topics. I am looking forward to read more blogs from here. Students finding it tough to write an assignment can try our online assignment help and can get their coursework written by assignment experts. <a href="http://www.coldfusionhelp.net">ColdFusion Assignment Help</a>


ASP Assignment Help (par ASP Assignment Help)

Good way of telling, good post to take facts regarding my presentation subject matter, which i am going to deliver in my college.
<a href="http://www.mechanicalassignments.com/">Mechanical Engineering Assignment Help</a>


Mechanical Engineering Assignment Help (par Mechanical Engineering Assignment Help)

Good way of telling, good post to take facts regarding my presentation subject matter, which i am going to deliver in my college.
<a href="http://www.mechanicalassignments.com/">Mechanical Engineering Assignment Help</a>


ASP Assignment Help (par ASP Assignment Help)

A debt of gratitude is in order for partaking in subtle element. Your website is a motivation!
<a href="http://asphelponline.com/">ASP Assignment Help</a>


Thesis Writing Service UK (par Thesis Writing Service UK)

Good event, I think because to have a necessary books is very important for every profession, especially, for writers who make your life easier everywhere. <a href="https://www.dissertationwriting.uk/">Thesis Writing Service UK</a>


Auditing Assignment Help (par Auditing Assignment Help)

Well thanks for posting such an outstanding idea. I like this blog & I like the topic and thinking of making it right.
<a href="http://auditinghelp.com/">Auditing Assignment Help</a>


Online Programming Homework Help (par Online Programming Homework Help)

Hi buddy, your blog' s design is simple and clean and i like it. Your blog posts about Online Dissertation Help are superb. Please keep them coming. Greets!!


Database Assignment Help Service (par Database Assignment Help Service)

Really i appreciate the effort you made to share the knowledge. This is really a great stuff for sharing. Keep it up . Thanks for sharing.


C# solutions provider (par C# solutions provider)

That is Good to be hearing here Thanks For More Helpful Tips


help writing a dissertation (par help writing a dissertation)

Great work! I am very much pleased with your work and help. This was definitely not the last try of mine with you.


Human Resources Assignment Help (par Human Resources Assignment Help)

Hi buddy, your blog' s design is simple and clean and i like it. Your blog posts about Online writing Help are superb. Please keep them coming. Greets!


Buy Marketing Assignment Help (par Buy Marketing Assignment Help)

Dissertation Guidance Provides quality Online Dissertation Help for students.


MathCad Online Assignment Help (par MathCad Online Assignment Help)

only professional writers can make this kind of material, cheers


Programming Matlab Help (par Programming Matlab Help)

I am pretty sure about this information you shared because its really helpful for everyone.


Sociology Online Assignment Help (par Sociology Online Assignment Help)

This is really great work. Thank you for sharing such a good and useful information here in the blog for students.


cac loai nuoc khoang kiem (par nguyenkhachieu285@gmail.com)

great post


Enterprise Messaging Solutions (par renukachouhan2015@gmail.com)

Solutions Middle East, works to Envision, Execute and Empower our clients by offerings design, implementation and on-going support services.


Solutions (par Enterprise Messaging Solutions)

Solutions Middle East, works to Envision, Execute and Empower our clients by offerings design, implementation and on-going support services.


school (par Boarding School in Rajasthan)

DPS has a very good hostel for the students where they get homely environment.


school (par Best boarding school in ncr)

Students of various age groups and different places live in the hostel.


school (par Top CBSE school in Rajasthan)

They get opportunity to interact with diverse group of students and people.


Furniture in Kenya (par fai1111@gmail.com)

The Fairdeal Group of Companies is a fast-growing group with the ambition of helping people across Kenya build their dream homes and offices.<br>


Filmmaking classes in Delhi (par Filmmaking classes in Delhi)

Moonlight Films and Theatre Studio operates under the Moonlight Films and Theatre Society , a non-profit association whose goals are to spread knowledge of and interest in theatrical and media arts through education.<br>


PMT coaching (par PMT coaching institute in hisar)

VIGYAN DHARA is the first Indian IIT-JEE/ NEET/AIIMS coaching Institute which is purely based on Historical Indian Education System that is the Gurukul Tradition of Education where students leave their homes during their studies.


Software solutions (par Open text Faxing Solution)

SCS is focused on providing the most comprehensive, heterogeneous, integrated IT Software solutions to enterprises around the world.


solution (par Messaging Solutions)

Today, none of our competitors come close to matching the breadth and depth of our technology solutions offerings.


solution (par Online Faxing solutions provider)

In Partnership with World Leaders in Technology, We design and Integrate solutions that helps customers cut costs, reduce risk and achieve business objectives. As a group we are 20+ years old company serving 3000+ Customers in Middle East, Africa, and India.


tnks (par تور دبی)

Awesome article, Great, & Informative..Wonderful article you wrote.


AFL Sports News (par zainab.sh174gmail.com)

very nice blog..


GREAT (par Do My Dissertation-DoneDissertation)

This is truly awesome work. Much obliged to you for sharing such a decent and valuable data here in the blog for understudies.


THANKS (par Admission Essay Writing)

Incredible work! I am especially satisfied with your work and offer assistance. This was unquestionably not the last attempt of mine with you.


Magento Development company (par biztechcs16@gmail.com)

A very good and informative article indeed.It helps me a lot to enhance my knowledge, I really like the way the writer presented his views. I hope to see more informative and useful articles in future.


Unique content (par Cat5E ethernet cables)

You have a real ability for writing unique content. I like how you think and the way you represent your views in this article. I agree with your way of thinking. Thank you for sharing.


X11 (par Animated Explainer Video)

I am mindful that X11 XQuartz is essential for a program to run so I introduced it yet then it requesting that I log out and afterward log back in. It likewise said it was a windows server. Does that mean XQuartz supplanted the default windows server in OSX Mavericks? Is there any hazard to this? I would prefer not to run this program much and I would prefer not to hazard whatever other projects not working effectively as a result of an alternate library. I would uninstall it if there is a hazard.


Thank you! (par Anna)

Excellent article, read in one breath! Thank you!
http://calculatorbmi.org/macro-calculator/


Hotmail Contact Number UK (par Hotmail Toll Free Number)

Get the best online technical services for Hotmail technical issues through calling on Hotmail Contact Number UK and directly talk with the tech expert.


restaurants near me (par restaurants near me)

I am grateful to you for a useful and interesting article, write more!


places to eat near me (par places to eat near me)

This is a useful and well-written tip for all newbies, thanks a lot


Help With Programming Assignment (par Help With Programming Assignment)

I'm getting excited about this kind of beneficial information of your stuff in the future


Very nice article (par Kajal Agarwal Photos)

Very good article nice detailing


ICC Champions Trophy (par ICC Champions Trophy)

The ICC Champions Trophy is a one day international cricket tournament organised by the International Cricket Council, second in importance only to the Cricket World Cup.

https://iccchampionstrophy.org/


Case Study Writing service (par Case Study Writing service)

I personally like your post; you have shared good insights and experiences. Keep it up.


school (par Best Mass communication institutes in Delhi)

Take One School of Mass Communication considered as a part of the Top Mass Communication Colleges in India. It was set up in the year 2003 by honing media experts who met with a mutual vision of giving a stage to the adolescent of the nation.


Accounting Dissertation Help (par Accounting Dissertation Help)

Pretty helpful material, much thanks for this article


Hi, There’s no doubt (par Piggy Boom Hack)

Hi, There’s no doubt that your site might be having internet
browser compatibility issues


Case Study Analysis (par Case Study Analysis)

This is really great work. Thank you for sharing such a good and useful information here in the blog for students.


Operations Management Assignment Help (par Operations Management Assignment Help)

Those who come to read your article will find lots of helpful and informative tips


任务帮助 (par 任务帮助)

主要任务帮助英国公司向客户提供最先进的服务,承诺在最后期限内完成所有必要的工作。


mylordtaylor.com (par mylordtaylor.com)

I thank you for the information! I was looking for and could not find. You helped me!
https://employeeloginguides.com/mylordandtaylor-com/


دانلود قسمت سیزدهم سریال عاشقانه (par دانلود قسمت سیزدهم سریال عاشقانه)

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


Photography (par Cinematographer in jaipur)

Such a fantastic post founded.Thanks for sharing.


buy assignment help (par buy assignment help)

I’m really impressed with your article, such great & usefull knowledge you mentioned here


BBA Report Writing (par BBA Report Writing)

Pretty helpful material, much thanks for this article


Programming SPSS (par Programming SPSS)

John arnold is an academic writer of the Dissertation-Guidance. Who writes quality academic papers for students to help them in accomplishing their goals.


puchaser (par Gotya)

I don't understand the post since its in english but i guess this going to be a great article well i was reading this while i was <a href="http://bicycleofmountain.over-blo...st-mountain-bike.html">going to purchase my mountain bike</a> i was always fan of these cycles not because they look good but they perform really well on any terrain you ride them.


replique montre pas cher suisse (par replique montre)

La montre a même un système unique de visualisation de latitude et de longitude qui vous montre exactement où vous êtes lorsque la <a href="http://www.frpaschermontres.eu">replique montre</a> saisit un signal satellite GPS.

Tout cela vient dans un paquet de G-Shock assez massif qui semble qu'il pourrait survivre à un système de Dreamliner. Il dispose d'un boîtier <a href="http://www.repliquemontresbien.com">replique montres de luxe</a> massif de 57 mm et d'un cadran 3D.


Call girls in Banglore (par Call girls in Banglore)

Nice article


rubipals (par rubikhuranas@gmail.com)

They curiously including in all sex diversions, sucking rooster, kissing for extend periods of time VIP Chandigarh escorts girls offers day or night enjoy unlimited 24 hours.

Visit Now:: http://www.chandigarhescort.biz/


replica rolex (par replica rolex)

Il Rolex Submariner è la più http://www.orologirepliche.it famosa replica orologio Rolex su Internet. http://www.orologirepliche.it/rolex Spesso è difficile in questi giorni per individuare come un falso. http://www.orologirepliche.it/omega Le migliori orologi falsi di qualità sono anche chiamati svizzero di grado 1 e sono così buone.