2016-10-02 78 views
0

我在2臺PC上成功安裝了uniCenta POS:一臺安裝了Ubuntu 15.10,另一臺安裝了Ubuntu 16.04,兩臺都安裝了西班牙語(西班牙語)安裝 (我下載並執行了unicentaopos-3.91.3-linux-x64- installer.run)。 程序通常通過與終端運行:sudo的./start.sh如何在Ubuntu 16.04中運行uniCenta POS(版本3.91.3)?

現在我儘量讓該應用程序的桌面項: 我創建了一個名爲:Unicenta.desktop,位於:在/ usr /股/應用,與內容:

[Desktop Entry] 
Name=Unicenta 
Comment=Fires up Unicenta oPOS 
Type=Application 
Exec=/home/barmistias/unicentaopos-3.91.3/start.sh 
Icon=/home/barmistias/unicentaopos-3.91.3/unicentaopos.ico 
Terminal=false 

在這個階段,它不會創建任何圖標&發射器(但它已經應該吧?)

爲可執行文件start.sh和的位置圖標文件是正確的。現在,通過終端,我試圖把文件變成可執行文件: 當我所在的文件夾:在/ usr /共享/應用:

sudo chmod 775 ./Unicenta.desktop with ls -l I get: -rwxrwxr-x 

,當我所在的文件夾中:/家用/ barmistias/unicentaopos-3.91.3:

sudo chmod 775 ./start.sh with ls -l I get: -rwxrwxr-x 
sudo chmod 777 ./unicentaopos.jar with ls -l I get: -rwxrwxrwx 

另外,我把正確的路徑中的start.sh文件:

開始uniCenta OPOS

java -cp $CP -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -jar /home/barmistias/unicentaopos-3.91.3/unicentaopos.jar "[email protected]" 

所以,它應該工作,但事實並非如此。另外,如果我通過在屬性中激活start.sh成爲可執行文件:「允許執行文件作爲程序」,應用程序啓動方式不同(德比數據庫停用,並且無法保存對此設置的更改。設置窗口,所以它不允許進入程序的主窗口)。

因此,總而言之,如何創建一個成功並正常啓動uniCenta POS(版本3.91.3)的桌面圖標? 感謝您的幫助!

回答

0

如何創建成功並正常啓動uniCenta POS(版本3.91.3)

試試這個桌面圖標:

  • 在桌面目錄(/home/barmistias/Desktop)創建Unicenta.desktop,就像你以上所做的一樣。

  • Exec=行更改start.shlauncher.sh行。

  • 像這樣創建文件launcher.sh;

    
        #!/bin/bash 
    
        cd /home/barmistias/unicentaopos-3.91.3/ 
    
        ./start.sh 
    
  • 設置爲launcher.shUnicenta.desktop

  • 現在測試的執行權限。

該指南從this blog post

也採取了,搜索unicenta desktop shortcut not working solution產生從Unicenta討論頁面和其他博客文章有用的文章。