Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hallo Community,

 

Folgendes Problem:

 

Ich habe vor kurzem das 5" Touch Display erhalten, und wollte mal eine kleine grafische Anwendung schreiben. Einfach mal zum testen.

 

Das Problem hier ist das er mir eine XServer Fehlermeldung wirft. Ich bin kein Experte was Linux angeht. Ich weiß nur das der XServer was mit der grafischen Oberfläche zu tun hat.

 

Was hab ich falsch gemacht? Oder kann man in C# gar keine grafische Oberfläche auf dem Red Brick zum laufen bekommen? Oder muss ich es wohl möglich in C++ mit Qt schreiben?

 

Anbei mal der Fehler log:

Unhandled Exception:

System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variable)

Parameter name: Display

  at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0

  at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0

  at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0

  at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0

  --- End of inner exception stack trace ---

  at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0

  at AM_Test.Program.Main () [0x00000] in <filename unknown>:0

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variable)

Parameter name: Display

  at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0

  at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0

  at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0

  at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0

  --- End of inner exception stack trace ---

  at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0

  at AM_Test.Program.Main () [0x00000] in <filename unknown>:0

 

MfG

 

Geschrieben

Wie hast Du Dich am RED angemeldet bzw. worüber das Programm gestartet?

Es sieht so aus, als sei in Deiner Console die DISPLAY-Variable nicht gesetzt.

Geschrieben
  • Autor

Naja über den Tab Programm beim Red Brick im BrickViewer. Oder muss ich das manuell "rüberschieben"?

 

Edit:

Okay das Problem ist im Prinzip gelößt. Wenn ich die Datei manuell starte über den FileManager startet die Anwendung.

Geschrieben
  • Autor

Großartig Danke :) Ich muss zugeben ich hab die Doku gar nicht gelesen :o Aber danke für deinen Hinweis. Jetzt startet es automatisch so wie ich mir das vorgestellt habe!

 

Vielen Dank :)

 

MfG

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.