Fedora :: What Is Proper Way To Program For Based GUIs?
Aug 21, 2010
I have recently been programming with Qt and slowly getting my head around it.I want to have a pet project to learn some more and then I got to thinking how should I go about this.My question is what is the proper way to program for Linux based GUIs? One of the things I would like to write is a small front end for newspost. I want to include extra stuff like rar and creating pars on the fly. So how should I go about integrating other CLI programs to make my GUI feature rich? I thought of three ways to approach this.
1. Take all source code and throw it into one self containing project. (think this is evil)
2. The GUI will basically assemble CLI commands and call them. This is nice but can very fragile.
3. The GUI will compile against rar-libs and other libs?
I am originally an MS programmer and don't think I should apply same practices toward Linux. So let me know what your opinions are and how you roll out GUIs.
View 3 Replies
ADVERTISEMENT
Feb 15, 2011
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
View 2 Replies
View Related
Feb 10, 2010
I need to launch programs in my program and the program can be a script, a Linux executable or even a Windows executable. The first thing i tried is to use xdg-open from my program, but i can't pass arguments to it, otherwise it would have worked perfectly. Is there maybe a way to determine which program is set as default according to the mime-type of the program i want to launch? I also tried kfmclient and gnome-open, they don't allow arguments either.
View 2 Replies
View Related
Oct 18, 2010
On an Ubuntu Server I am running, I wrote a small Ncurses program in GCC. It worked just fine.
Then, I copied the executable over to my Ubuntu 10.10 desktop edition with sftp. No matter what I did, it kept giving the error:
error opening terminal: xterm.
I had copied other non-curses programs and they all ran just fine.
Finally, I copied over the source, recompiled with GCC and voila, the executable now runs fine.
View 6 Replies
View Related
May 4, 2011
I've been given one of these ubiquitous usb-sleep buttons which is basically a supersimple usb-keyboard. It's a big button that sends a SLEEP keypress to the computer when you slam it. But that is pretty boring. I'd love to remap it to do something more fun but I can't figure out how to bind to only the sleep press from the button and not from my ordinary keyboard.
The button identifies as
Bus 001 Device 035: ID 1130:600d Tenx Technology, Inc.
I'd like to know if there's either
a way of mapping a key from a specific keyboard to an action OR a way of remapping the sleep key from a specific keyboard to a new key-code or something like that.
View 1 Replies
View Related
Feb 9, 2010
I currently doing a network emulator program and the features must includes the web-based interface for user configuration. I able to run my program through command line. But I would like to ask how to associate my program to web-based interface for user configuration?
View 8 Replies
View Related
Jun 26, 2011
I have an old computer I have setup as a backup computer / Linux practice computer. It is a Sun Ultra2 w/ 2x200MHz SPARC CPUs, 512MB RAM, 9.1GB SCSI HD, and Creator 3D video card. It is running Debian 6, by default with no GUI installed. But, I am wanting to try out several minimalistic GUIs with it. So, first thing I did was:
aptitude install icewm
aptitude install xserver-xorg-video-sunffb
aptitude install rcconf (used to disable X from automatically starting)
aptitude install xfe
startx
And well, it worked. Well, for some reason, I couldnt read any of the buttons in xfe, and it was stuck in the upper left corner of the screen. So then I tried PCManFM, which was better, but the icons were still all blank. However, upon trying other WMs, I have had very little success. I got dwm working, but didnt try it out for too long before removing it and trying others. I was able to get LXDE to work, and that was that last thing I got to work. Now Ive tried IceWM again, as well as jwm, and every time I end up with a black screen.
By the way, any suggestions on a WM/FM (and maybe panel) combo would be greatly appreciated as well. Even with IceWM and PCManFM, this system is pretty slow. Its really going to mostly be used as a backup internet machine. Whats the bare minimum setup to get icons on the desktop?
View 9 Replies
View Related
Sep 4, 2011
Could you suggest feature-rich disk-based personal backup program for Linux (and I've seen a few)?
I want to do nightly backups of the whole system and be able to rollback to any of last 7 days. And, it must be incremental backups. What tool should I use? The tutorials I've read about rsync tell only how to store latest incremental backup and I need last 7.
View 3 Replies
View Related
Sep 24, 2010
I can't boot to a choice of guis in OpenSuse 11.3
can anyone advise me on my next move? code...
View 5 Replies
View Related
Feb 19, 2010
I used MusicBrainz Picard to tag FLAC and Mp3 files, fixed any necessary genre tags in Rhythmbox, and used EasyTag to rename the actual files.But now I'm interested in using those genre tags as folder names...is there any program that will sort my music into folders based on their genre tags?
View 5 Replies
View Related
Dec 12, 2009
Is there a way to have the Invada and Calf pugins show their GUIs in Opensuse 11.2 with Ardour 2.8.4. The GUIs will show when opened outside of Ardour using the Calfjackhost but not in Ardour. The GUIs will display in Ardour when using other Linux distro I try but can't get them to show in Opensuse.
View 1 Replies
View Related
May 31, 2011
I like the convenience of having a music player that manages the placement of my music files based on the tags of the files, sorting into a root music folder with Artist/Album/01 - Track Title.mp3 sort of hierarchy. Previously, I was using Banshee for this feature, as even most of the other gui music players don't have this library management feature. Now, I've been trying to use console-based applications, and I have been using mpd + ncmpcpp fairly successfully. When I download new music, it is downloaded to a specific folder, and that's not part of my music collection. My previous workflow would be to open a gui filemanager at the downloaded folder, and drag and drop those songs onto banshee, which would then make a copy of those files in my library hierarchy. Currently, I'm doing the same thing, using Banshee only as a sort of import program, then closing it and updating my mpd database, and there we go.
If at all possible, I'd like to automate this to something where I can define a watch folder, and when some magical program sees new music in said watch folder, it identifies the correct place for the files to be copied into my heirarchy, renaming folders and files to the correct format. I know I've written a lot describing, but I don't actually think this too uncommon a task, and I'm wondering if anyone has a solution for my problem.
View 3 Replies
View Related
Apr 6, 2011
I set openbox wallpaper with:
Code:
feh --bg-scale ~/Pictures/image.jpg &
In ~/.config/openbox/autostart.sh last line.
But some kind of KDE stuff overrides it and sets default again after few seconds. I can override it again with manual command. How can I set wallpaper then in openbox in proper way?
View 6 Replies
View Related
Apr 17, 2011
I was wondering the proper way to disable phpmyadmin.
View 1 Replies
View Related
May 5, 2010
i want a downloader so that when i save wiki saves for me all the links in the wiki page, i have worked with flashgot but it is not proper and does not work properly.
View 1 Replies
View Related
Oct 1, 2010
It seems that whenever I boot my laptop (hp probook 6450b) without a monitor attached, then boot with a monitor later attached, the configuration gets all messed up.
Currently, if I boot with the monitor attached, right after the blue loading screen (at the login prompt) i get two black monitors and a mouse, with no login screen. Unplugging the monitor shows the login screen on the laptop.
If i boot without the monitor attached, log in, then plug it in, i see the following from xrandr:
Code:
Screen 0: minimum 320 x 200, current 2390 x 768, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 310mm x 174mm
1366x768 59.6*+
1024x768 60.0
[Code]....
However, now when I reboot, all settings are lost, and if the monitor is attached, i get the black screen with a mouse at login.
I did notice that when I shutdown, it hangs on "Running guests on default URI", and i get a stack trace. It will keep dumping stack traces, and i have to hold down the power button to force it off.
View 2 Replies
View Related
Mar 8, 2011
for quite a while inside of our organization we've been editing /etc/sysconfig/iptables directly without much issues. However it was suggested to us that by doing so we risk losing all those rules whenever some package decides to use lokkit or "system-config-firewal*"Doing a bit of analysis I can't really find any trace of code that would prevent us from maintaining iptables just the way we were (as long as *we* don't use lokkit or system-config-firewall*) since "service iptables save" is a valid technique and uses iptables-save script which is part of iptables package and *not* part of system-config-firewall*
So we've got some evidence that may confirm our usage as valid, however it would be nice to know if indeed this is *not* a recommended way of maintaining iptables and we should reconsider how we approach it.
View 9 Replies
View Related
Jul 25, 2010
Looks to me like we're a baby-step behind Windows in not having GUI wrappers or frontends for the steganography (?) binaries I mentioned above. Or have my searches just not turned up the obvious GNOME solution?
Also, can someone tell me exactly what image file format works in login screen face lists, in place of the "generic user" icon one? And is there a command-line workaround to get unique ones assigned per-user? The "Login Window" utility in Ubuntu 9.10 seems a bit insistent on using the same image and path to images for all user icons -- hardly a user-friendly way of making user A's identifying icon different from user B's.
View 1 Replies
View Related
Apr 25, 2010
I've installed some updates for Fedora 12 x64 and now I don't get the desktop, but a flashing cursor and no boot. After forcing a reboot it says something like "interrupting smolt update" and then shuts down. How do I get back to proper booting/desktop?
View 1 Replies
View Related
Jun 1, 2011
I can't find any proper power management options on Fedora 15, only really basic simple options under the Advanced tab of the Screensaver.Where can I change the Power Management settings in F15?I'd like to set it so that
- screen powers down on closing the lid only, else never powers down / or after a certain time.
- the machine never powers down, either on AC or on battery.
- screen dims on battery after some time, but no on AC.
- hard drive never powers down.
I previously used Fedora 14 and earlier version on my laptops, and could easily set these power management either through the Screensaver, or directly from another menu.Also, I enabled the "Blank Screen Only" mode in the Screensaver, and disabled the "Lock Screen After", but it still asks for a password after some time. How can I stop that?
View 14 Replies
View Related
Jun 29, 2011
Im using a Fedora 15 and im trying to compile a 3.0.0rc5 kernel. but im unable to get a config for my machine to boot up. i tried make localmodconfig it says
using config: '.config'
capifs config not found!!
Restart Config
and then i tried cp /boot/config-2.6.38.6-26.rc1.fc15.i686.PAE .config to override the default config but stil that doesnt work. work around to get a proper config so that i can boot the latest kernel here?
View 1 Replies
View Related
Jan 7, 2011
We are using Red Hat Enterprise AS 3.0. We are not able to configure the proper drivers for Canon iR3300 MFD. If anybody have achieved this, would like to know the procedure for the same.
View 2 Replies
View Related
Jul 26, 2009
I would like to replace the exiting kernel in one of my Fedora 11 installs with an earlier kernel from a Fedora 10 Unity Spin...so I can use it to bring ATI functionality to Fedora 11. Also, I recall there being a way to unpack rpms and 'repackage' them using a different kernel development set. How is this done?
View 3 Replies
View Related
Jan 29, 2010
I want to install a new graphics card, Nvidia Geforce 9400 GT, into my system running Fedora 12, x86_64.
* Should I install the hardware into the system first?
* Or should I download the proper drivers and install them first, before hardware?
* Do I need to disable or remove drivers for my integrated graphics card (Integrated NVIDIA GeForce 6150 SE graphics) before I do anything?
View 6 Replies
View Related
Apr 16, 2010
I tried to install F12 on my new IDE-HDD. The installation completed without any errors. But, when rebooting my PC I got a dark screen with error message: reboot and select proper boot device.
No BIOS boot up issue, since booting up using other hard disk running windows has no problem at all. I have set the hardisk jumper to master/primary, tried to re-install F12 a couples of time, but didn't make any difference.
View 2 Replies
View Related
Mar 26, 2011
I am doing something wrong. Just connected Fedora 14 to the internet. I wanted to do a speed test and this requires flash. I have download the linux (yum) version and tried to install adobe-release-i386-1.0-1.noarch.rpm no idea what is needed to be done next.
View 8 Replies
View Related
Jun 7, 2010
I notice that on DistroWatch, the descriptions include "debian based", "arch based", etc. For the newbie, is there any practical difference between the different bases, or is it a Coke vs Pepsi type question?
Is a distro based on Debian say, easier for a newbie to learn or work with than say one that is FreeBSD based?
View 9 Replies
View Related
Aug 12, 2010
I've got some source code that loads and plays WAV files through the OSS drivers (and USB audio). The code works even under 2.6.34. Is there any benefit to rewriting the code using the ALSA system?
View 1 Replies
View Related
Apr 24, 2010
I am working on a set up, and I like to be able to toggle compiz on and off, or toggle dualscreen on and off. The thing is, I also have conky on my desktop as well as a terminal window embedded in my desktop (that requires compiz). So, when I turn comiz off, or resize my desktop, I want to be able to reposition conky/embedded-terminal and the terminals position is relative to my conky position and the size of my virtual desktop.
I can do this all fine, except that to reposition the terminal I need to kill it then reopen it. But if I kill gnome-terminal it kills ALL gnome-terminals instead of just my embedded one. How can I specifically close my embedded one and leave any others untouched? Lets say that the title of my embedded terminal is "trans777"Also, the trans777 titled gnome-terminal will be killed when compiz is not running.
View 1 Replies
View Related
Apr 5, 2010
When you use an IDE and it asks you if you want frame based or dialog based, what is the difference?
View 1 Replies
View Related